sst 2.0.0-rc.13 → 2.0.0-rc.15
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
CHANGED
|
@@ -51,7 +51,7 @@ export class NextjsSite extends SsrSite {
|
|
|
51
51
|
// https://github.com/aws/aws-cdk/issues/9251
|
|
52
52
|
// We will zip the folder ourselves.
|
|
53
53
|
const zipOutDir = path.resolve(path.join(this.sstBuildDir, `Site-${this.node.id}-${this.node.addr}`));
|
|
54
|
-
const script = path.resolve(__dirname, "../support/ssr-site-function-archiver.
|
|
54
|
+
const script = path.resolve(__dirname, "../support/ssr-site-function-archiver.mjs");
|
|
55
55
|
const result = spawn.sync("node", [
|
|
56
56
|
script,
|
|
57
57
|
path.join(this.props.path, ".open-next", "server-function"),
|
package/constructs/SsrSite.js
CHANGED
|
@@ -278,11 +278,11 @@ export class SsrSite extends Construct {
|
|
|
278
278
|
fs.rmSync(zipOutDir, { recursive: true, force: true });
|
|
279
279
|
// Create zip files
|
|
280
280
|
const app = this.node.root;
|
|
281
|
-
const script = path.resolve(__dirname, "../support/base-site-archiver.
|
|
281
|
+
const script = path.resolve(__dirname, "../support/base-site-archiver.mjs");
|
|
282
282
|
const fileSizeLimit = app.isRunningSSTTest()
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
284
|
+
// @ts-ignore: "sstTestFileSizeLimitOverride" not exposed in props
|
|
285
|
+
? this.props.sstTestFileSizeLimitOverride || 200
|
|
286
286
|
: 200;
|
|
287
287
|
const result = spawn.sync("node", [
|
|
288
288
|
script,
|