sst 2.18.4 → 2.19.1

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/stacks/synth.js CHANGED
@@ -10,15 +10,18 @@ export async function synth(opts) {
10
10
  const { App } = await import("../constructs/App.js");
11
11
  const { useNodeHandler } = await import("../runtime/handlers/node.js");
12
12
  const { useGoHandler } = await import("../runtime/handlers/go.js");
13
+ const { useContainerHandler } = await import("../runtime/handlers/container.js");
13
14
  const { useRustHandler } = await import("../runtime/handlers/rust.js");
14
15
  const { usePythonHandler } = await import("../runtime/handlers/python.js");
15
16
  const { useJavaHandler } = await import("../runtime/handlers/java.js");
16
17
  useNodeHandler();
17
18
  useGoHandler();
19
+ useContainerHandler();
18
20
  usePythonHandler();
19
21
  useJavaHandler();
20
22
  useDotnetHandler();
21
23
  useRustHandler();
24
+ const cxapi = await import("@aws-cdk/cx-api");
22
25
  const { Configuration } = await import("sst-aws-cdk/lib/settings.js");
23
26
  const project = useProject();
24
27
  const identity = await useSTSIdentity();
@@ -38,6 +41,9 @@ export async function synth(opts) {
38
41
  const cfg = new Configuration();
39
42
  await cfg.load();
40
43
  let previous = new Set();
44
+ const context = cfg.context.all;
45
+ context[cxapi.PATH_METADATA_ENABLE_CONTEXT] =
46
+ project.config.cdk?.pathMetadata ?? false;
41
47
  while (true) {
42
48
  const app = new App({
43
49
  account: identity.Account,
@@ -50,7 +56,7 @@ export async function synth(opts) {
50
56
  isActiveStack: opts.isActiveStack,
51
57
  }, {
52
58
  outdir: opts.buildDir,
53
- context: cfg.context.all,
59
+ context,
54
60
  });
55
61
  await opts.fn(app);
56
62
  await app.finish();
@@ -0,0 +1,3 @@
1
+ FROM public.ecr.aws/lambda/nodejs:18
2
+ COPY bridge.mjs ${LAMBDA_TASK_ROOT}
3
+ CMD ["bridge.handler"]