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.
- package/constructs/NextjsSite.js +1 -1
- package/constructs/SsrSite.d.ts +27 -27
- package/package.json +1 -1
package/constructs/NextjsSite.js
CHANGED
|
@@ -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.
|
|
32
|
+
buildCommand: "npx --yes open-next@2.0.5 build",
|
|
33
33
|
...props,
|
|
34
34
|
});
|
|
35
35
|
this.deferredTaskCallbacks.push(() => {
|
package/constructs/SsrSite.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
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[];
|