Closed dhoulker closed 2 months ago
Yeah can you share what you've added to your sst config? We try and strip the imports but what's happening is that it's trying to eval it in an environment that doesn't have these dependencies. This gets done before the actual build is run.
Here's repo for you - https://github.com/dhoulker/sst-monorepo-sandbox
sst deploy --stage dev
) ✅Local deploy works irrespective of how the region is set.
Let me know if you need anything else, dev
branch is the one you need above.
You can see my attempts below
Thanks!
Yeah I don't think this'll quite work. Because of what I was mentioning above. I know you said it's a contrived example but in your real use case is it the region that you are setting through an import?
Our use case is that we have multiple sst projects in the repo and would to share some config, eg stage name.
Its not a huge problem, if this is a limitation i'm sure we can work round it.
We have been using Autodeploy on our project.
We have a Turborepo monorepo, and we import some shared config from a local package in our
sst.config.ts
With this approach the Autodeploy service is not able to read our sst config and the deploy fails, we see
Error evaluating sst.config.ts
Once we replace the shared config with actual values the deploy works great.
Let me know if you need a reproducible example, or if i've raised this in the right place.