Jay
Jay
Hmm I don't think we can right now. We can put it on the roadmap.
I don't think we have an example for this on our side. Is there a doc or tutorial you've seen elsewhere that implements this? I can take a look and...
Do you mean Pulumi's stacks or do you just mean organizing resources separately? https://github.com/sst/ion/tree/dev/examples/aws-monorepo/infra
Yeah something like that. We'll need to give it some thought on our side.
We have some ideas around this. We want to let the Router to be able to replace the CDN that the site uses. But this needs a bit of work...
Yeah so now you can use a separate CDN for SSR and static sites: https://sst.dev/blog/frontends-are-hard#a-new-approach
So we do have something for this. You can now update the environment variables of function after it has been created. ``` const fn = new sst.aws.Function("MyFunction", { handler: "src/lambda.handler"...
I haven't tried it but does this not work? ``` site.nodes.server.addEnvironment({ AWS_CF_DISTRIBUTION_ID:site.nodes.cdn.nodes.distribution.id }) ```
We need to turn this into an app in the `examples/` dir. Leaving this open for when I get to it.
Yeah working on the docs and finalizing the API for it.