I know in the same stack it is possible to use `La...
# help
g
I know in the same stack it is possible to use
Lazy
to load a circular dep... but what if it is across stacks? For example I would be looking to switch to lerna multiple sst apps and I want the frontend stack to know the backend stacks api url and I want the backend stack to know the frontend url.
f
That wouldn’t be possible. You probably need to use an SSM to break this circular dependency.
This s not even possible if the API and the Site were in the same stack
Lazy get around build circular dependency, but this is deploy time
g
hmm so am I misunderstanding this gist then? https://gist.github.com/fwang/db1e5697913c5533f8b95a4f04464870
f
Oh wait.. sorry.. I was wrong.. the gist is correct. It would work if they were in the same stack. But it won’t work if they were in different stacks.