sst 2.0.24 → 2.0.26
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/credentials.js +4 -2
- package/package.json +1 -1
- package/project.js +4 -0
- package/runtime/handlers/node.js +1 -0
- package/runtime/server.js +1 -1
- package/sst.mjs +8 -2
package/credentials.js
CHANGED
package/package.json
CHANGED
package/project.js
CHANGED
|
@@ -85,6 +85,10 @@ export async function initProject(globals) {
|
|
|
85
85
|
path: path.join(project.paths.root, `.env.${project.config.stage}`),
|
|
86
86
|
override: true,
|
|
87
87
|
});
|
|
88
|
+
dotenv.config({
|
|
89
|
+
path: path.join(project.paths.root, `.env.${project.config.stage}.local`),
|
|
90
|
+
override: true,
|
|
91
|
+
});
|
|
88
92
|
Logger.debug("Config loaded", project);
|
|
89
93
|
}
|
|
90
94
|
async function usePersonalStage(out) {
|
package/runtime/handlers/node.js
CHANGED
package/runtime/server.js
CHANGED
|
@@ -71,7 +71,7 @@ export const useRuntimeServer = Context.memo(async () => {
|
|
|
71
71
|
Logger.debug("Worker", req.params.workerID, "sending next payload");
|
|
72
72
|
res.set({
|
|
73
73
|
"Lambda-Runtime-Aws-Request-Id": payload.context.awsRequestId,
|
|
74
|
-
"Lambda-Runtime-Deadline-Ms": payload.deadline,
|
|
74
|
+
"Lambda-Runtime-Deadline-Ms": Date.now() + payload.deadline,
|
|
75
75
|
"Lambda-Runtime-Invoked-Function-Arn": payload.context.invokedFunctionArn,
|
|
76
76
|
"Lambda-Runtime-Client-Context": JSON.stringify(payload.context.clientContext || {}),
|
|
77
77
|
...(payload.context.identity
|
package/sst.mjs
CHANGED
|
@@ -381,6 +381,10 @@ async function initProject(globals) {
|
|
|
381
381
|
path: path4.join(project.paths.root, `.env.${project.config.stage}`),
|
|
382
382
|
override: true
|
|
383
383
|
});
|
|
384
|
+
dotenv.config({
|
|
385
|
+
path: path4.join(project.paths.root, `.env.${project.config.stage}.local`),
|
|
386
|
+
override: true
|
|
387
|
+
});
|
|
384
388
|
Logger.debug("Config loaded", project);
|
|
385
389
|
}
|
|
386
390
|
async function usePersonalStage(out) {
|
|
@@ -1554,8 +1558,9 @@ var init_credentials = __esm({
|
|
|
1554
1558
|
if (input.trim() !== "") {
|
|
1555
1559
|
resolve(input.trim());
|
|
1556
1560
|
rl.close();
|
|
1561
|
+
} else {
|
|
1562
|
+
prompt();
|
|
1557
1563
|
}
|
|
1558
|
-
prompt();
|
|
1559
1564
|
});
|
|
1560
1565
|
prompt();
|
|
1561
1566
|
});
|
|
@@ -2290,7 +2295,7 @@ var init_server2 = __esm({
|
|
|
2290
2295
|
Logger.debug("Worker", req.params.workerID, "sending next payload");
|
|
2291
2296
|
res.set({
|
|
2292
2297
|
"Lambda-Runtime-Aws-Request-Id": payload.context.awsRequestId,
|
|
2293
|
-
"Lambda-Runtime-Deadline-Ms": payload.deadline,
|
|
2298
|
+
"Lambda-Runtime-Deadline-Ms": Date.now() + payload.deadline,
|
|
2294
2299
|
"Lambda-Runtime-Invoked-Function-Arn": payload.context.invokedFunctionArn,
|
|
2295
2300
|
"Lambda-Runtime-Client-Context": JSON.stringify(
|
|
2296
2301
|
payload.context.clientContext || {}
|
|
@@ -4848,6 +4853,7 @@ var init_node = __esm({
|
|
|
4848
4853
|
...nodejs.install || [],
|
|
4849
4854
|
...external || []
|
|
4850
4855
|
],
|
|
4856
|
+
loader: nodejs.loader,
|
|
4851
4857
|
keepNames: true,
|
|
4852
4858
|
bundle: true,
|
|
4853
4859
|
logLevel: "silent",
|