sst 2.11.10 → 2.11.12
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/cli/commands/deploy.js +2 -1
- package/cli/commands/diff.js +2 -1
- package/cli/commands/remove.js +2 -1
- package/constructs/NextjsSite.js +1 -1
- package/package.json +1 -1
- package/sst.mjs +6 -3
package/cli/commands/deploy.js
CHANGED
|
@@ -70,8 +70,9 @@ export const deploy = (program) => program.command("deploy [filter]", "Deploy yo
|
|
|
70
70
|
const spinner = createSpinner({
|
|
71
71
|
text: " Building...",
|
|
72
72
|
});
|
|
73
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
73
74
|
const result = await Stacks.synth({
|
|
74
|
-
fn:
|
|
75
|
+
fn: sstConfig.stacks,
|
|
75
76
|
mode: "deploy",
|
|
76
77
|
isActiveStack,
|
|
77
78
|
});
|
package/cli/commands/diff.js
CHANGED
|
@@ -11,8 +11,9 @@ export const diff = (program) => program.command("diff", "Compare your app with
|
|
|
11
11
|
const { Colors } = await import("../colors.js");
|
|
12
12
|
// Build app
|
|
13
13
|
const project = useProject();
|
|
14
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
14
15
|
const assembly = await Stacks.synth({
|
|
15
|
-
fn:
|
|
16
|
+
fn: sstConfig.stacks,
|
|
16
17
|
mode: args.dev ? "dev" : "deploy",
|
|
17
18
|
});
|
|
18
19
|
// Diff each stack
|
package/cli/commands/remove.js
CHANGED
|
@@ -24,8 +24,9 @@ export const remove = (program) => program.command("remove [filter]", "Remove yo
|
|
|
24
24
|
const result = await loadAssembly(args.from);
|
|
25
25
|
return result;
|
|
26
26
|
}
|
|
27
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
27
28
|
return await Stacks.synth({
|
|
28
|
-
fn:
|
|
29
|
+
fn: sstConfig.stacks,
|
|
29
30
|
mode: "remove",
|
|
30
31
|
});
|
|
31
32
|
})();
|
package/constructs/NextjsSite.js
CHANGED
|
@@ -29,7 +29,7 @@ const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
|
|
29
29
|
export class NextjsSite extends SsrSite {
|
|
30
30
|
constructor(scope, id, props) {
|
|
31
31
|
super(scope, id, {
|
|
32
|
-
buildCommand: "npx --yes open-next
|
|
32
|
+
buildCommand: "npx --yes open-next@1.4.0 build",
|
|
33
33
|
...props,
|
|
34
34
|
});
|
|
35
35
|
this.createWarmer();
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -7591,8 +7591,9 @@ Are you sure you want to deploy to this stage? (y/N) `,
|
|
|
7591
7591
|
const spinner = createSpinner2({
|
|
7592
7592
|
text: " Building..."
|
|
7593
7593
|
});
|
|
7594
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
7594
7595
|
const result = await Stacks.synth({
|
|
7595
|
-
fn:
|
|
7596
|
+
fn: sstConfig.stacks,
|
|
7596
7597
|
mode: "deploy",
|
|
7597
7598
|
isActiveStack
|
|
7598
7599
|
});
|
|
@@ -7657,8 +7658,9 @@ var remove2 = (program2) => program2.command(
|
|
|
7657
7658
|
const result = await loadAssembly2(args.from);
|
|
7658
7659
|
return result;
|
|
7659
7660
|
}
|
|
7661
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
7660
7662
|
return await Stacks.synth({
|
|
7661
|
-
fn:
|
|
7663
|
+
fn: sstConfig.stacks,
|
|
7662
7664
|
mode: "remove"
|
|
7663
7665
|
});
|
|
7664
7666
|
}();
|
|
@@ -8167,8 +8169,9 @@ var diff2 = (program2) => program2.command(
|
|
|
8167
8169
|
const { createSpinner: createSpinner2 } = await Promise.resolve().then(() => (init_spinner(), spinner_exports));
|
|
8168
8170
|
const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
|
|
8169
8171
|
const project = useProject2();
|
|
8172
|
+
const [_metafile, sstConfig] = await Stacks.load(project.paths.config);
|
|
8170
8173
|
const assembly = await Stacks.synth({
|
|
8171
|
-
fn:
|
|
8174
|
+
fn: sstConfig.stacks,
|
|
8172
8175
|
mode: args.dev ? "dev" : "deploy"
|
|
8173
8176
|
});
|
|
8174
8177
|
let changesAcc = 0;
|