sst 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ import { toCdkSize } from "./util/size.js";
29
29
  export class NextjsSite extends SsrSite {
30
30
  constructor(scope, id, props) {
31
31
  super(scope, id, {
32
- buildCommand: "npx --yes open-next@2.0.4 build",
32
+ buildCommand: "npx --yes open-next@2.0.5 build",
33
33
  ...props,
34
34
  });
35
35
  this.deferredTaskCallbacks.push(() => {
@@ -197,9 +197,11 @@ export interface SsrSiteProps {
197
197
  /**
198
198
  * Pass in a list of file options to customize cache control and content type specific files.
199
199
  *
200
- * @default Versioned files cached for 1 year at the CDN and brower level. Unversioned files cached for 1 year at the CDN level, but not at the browser level.
200
+ * @default
201
+ * Versioned files cached for 1 year at the CDN and brower level.
202
+ * Unversioned files cached for 1 year at the CDN level, but not at the browser level.
201
203
  * ```js
202
- * [
204
+ * fileOptions: [
203
205
  * {
204
206
  * exclude: "*",
205
207
  * include: "{versioned_directory}/*",
@@ -220,31 +222,29 @@ export interface SsrSiteProps {
220
222
  *
221
223
  * @example
222
224
  * ```js
223
- * new AstroSite(stack, "Site", {
224
- * fileOptions: [
225
- * {
226
- * exclude: "*",
227
- * include: "{versioned_directory}/*.css",
228
- * cacheControl: "public,max-age=31536000,immutable",
229
- * contentType: "text/css; charset=UTF-8",
230
- * },
231
- * {
232
- * exclude: "*",
233
- * include: "[{versioned_directory}/*.js]",
234
- * cacheControl: "public,max-age=31536000,immutable",
235
- * },
236
- * {
237
- * exclude: "*",
238
- * include: "[{non_versioned_file1}, {non_versioned_file2}, ...]",
239
- * cacheControl: "public,max-age=0,s-maxage=31536000,must-revalidate",
240
- * },
241
- * {
242
- * exclude: "*",
243
- * include: "[{non_versioned_dir_1}/*, {non_versioned_dir_2}/*, ...]",
244
- * cacheControl: "public,max-age=0,s-maxage=31536000,must-revalidate",
245
- * },
246
- * ]
247
- * });
225
+ * fileOptions: [
226
+ * {
227
+ * exclude: "*",
228
+ * include: "{versioned_directory}/*.css",
229
+ * cacheControl: "public,max-age=31536000,immutable",
230
+ * contentType: "text/css; charset=UTF-8",
231
+ * },
232
+ * {
233
+ * exclude: "*",
234
+ * include: "{versioned_directory}/*.js",
235
+ * cacheControl: "public,max-age=31536000,immutable",
236
+ * },
237
+ * {
238
+ * exclude: "*",
239
+ * include: "[{non_versioned_file1}, {non_versioned_file2}, ...]",
240
+ * cacheControl: "public,max-age=0,s-maxage=31536000,must-revalidate",
241
+ * },
242
+ * {
243
+ * exclude: "*",
244
+ * include: "[{non_versioned_dir_1}/*, {non_versioned_dir_2}/*, ...]",
245
+ * cacheControl: "public,max-age=0,s-maxage=31536000,must-revalidate",
246
+ * },
247
+ * ]
248
248
  * ```
249
249
  */
250
250
  fileOptions?: SsrSiteFileOptions[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.22.0",
4
+ "version": "2.22.1",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },