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 CHANGED
@@ -24,8 +24,10 @@ export const useAWSCredentialsProvider = Context.memo(() => {
24
24
  resolve(input.trim());
25
25
  rl.close();
26
26
  }
27
- // prompt again if no input
28
- prompt();
27
+ else {
28
+ // prompt again if no input
29
+ prompt();
30
+ }
29
31
  });
30
32
  prompt();
31
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.24",
3
+ "version": "2.0.26",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
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) {
@@ -104,6 +104,7 @@ export const useNodeHandler = Context.memo(async () => {
104
104
  ...(nodejs.install || []),
105
105
  ...(external || []),
106
106
  ],
107
+ loader: nodejs.loader,
107
108
  keepNames: true,
108
109
  bundle: true,
109
110
  logLevel: "silent",
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",