sst 2.8.11 → 2.8.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.
|
@@ -18,7 +18,7 @@ export class SvelteKitSite extends SsrSite {
|
|
|
18
18
|
initBuildConfig() {
|
|
19
19
|
return {
|
|
20
20
|
typesPath: "src",
|
|
21
|
-
serverBuildOutputFile: ".svelte-kit-sst/server/lambda-handler/index.js",
|
|
21
|
+
serverBuildOutputFile: ".svelte-kit/svelte-kit-sst/server/lambda-handler/index.js",
|
|
22
22
|
// Note: form action requests contain "/" in request query string
|
|
23
23
|
// ie. POST request with query string "?/action"
|
|
24
24
|
// CloudFront does not allow query string with "/". It needs to be encoded.
|
|
@@ -30,16 +30,16 @@ export class SvelteKitSite extends SsrSite {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
`,
|
|
33
|
-
clientBuildOutputDir: ".svelte-kit-sst/client",
|
|
33
|
+
clientBuildOutputDir: ".svelte-kit/svelte-kit-sst/client",
|
|
34
34
|
clientBuildVersionedSubDir: "_app",
|
|
35
|
-
prerenderedBuildOutputDir: ".svelte-kit-sst/prerendered",
|
|
35
|
+
prerenderedBuildOutputDir: ".svelte-kit/svelte-kit-sst/prerendered",
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
createFunctionForRegional() {
|
|
39
39
|
const { runtime, timeout, memorySize, permissions, environment, nodejs, bind, cdk, } = this.props;
|
|
40
40
|
const ssrFn = new SsrFunction(this, `ServerFunction`, {
|
|
41
41
|
description: "Server handler for SvelteKit",
|
|
42
|
-
handler: path.join(this.props.path, ".svelte-kit-sst", "server", "lambda-handler", "index.handler"),
|
|
42
|
+
handler: path.join(this.props.path, ".svelte-kit", "svelte-kit-sst", "server", "lambda-handler", "index.handler"),
|
|
43
43
|
runtime,
|
|
44
44
|
memorySize,
|
|
45
45
|
timeout,
|
|
@@ -60,7 +60,7 @@ export class SvelteKitSite extends SsrSite {
|
|
|
60
60
|
},
|
|
61
61
|
copyFiles: [
|
|
62
62
|
{
|
|
63
|
-
from: path.join(this.props.path, ".svelte-kit-sst", "prerendered"),
|
|
63
|
+
from: path.join(this.props.path, ".svelte-kit", "svelte-kit-sst", "prerendered"),
|
|
64
64
|
to: "prerendered",
|
|
65
65
|
},
|
|
66
66
|
],
|
|
@@ -72,7 +72,7 @@ export class SvelteKitSite extends SsrSite {
|
|
|
72
72
|
const { runtime, timeout, memorySize, bind, permissions, environment, nodejs, } = this.props;
|
|
73
73
|
return new EdgeFunction(this, `Server`, {
|
|
74
74
|
scopeOverride: this,
|
|
75
|
-
handler: path.join(this.props.path, ".svelte-kit-sst", "server", "lambda-handler", "index.handler"),
|
|
75
|
+
handler: path.join(this.props.path, ".svelte-kit", "svelte-kit-sst", "server", "lambda-handler", "index.handler"),
|
|
76
76
|
runtime,
|
|
77
77
|
timeout,
|
|
78
78
|
memorySize,
|
|
@@ -94,7 +94,7 @@ export class SvelteKitSite extends SsrSite {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
generateBuildId() {
|
|
97
|
-
const filePath = path.join(this.props.path, ".svelte-kit-sst/client/_app/version.json");
|
|
97
|
+
const filePath = path.join(this.props.path, ".svelte-kit/svelte-kit-sst/client/_app/version.json");
|
|
98
98
|
const content = fs.readFileSync(filePath).toString();
|
|
99
99
|
return JSON.parse(content).version;
|
|
100
100
|
}
|