Is there a way to coordinate `npx sst start` for a...
# sst
a
Is there a way to coordinate
npx sst start
for a local debug stack and
npm run dev
of a next.js site? I’m thinking for example when using turbo or other monorepo tooling that you can run a single command that starts the debug stack as a dependency to the next.js dev runtime. I can start them in parallel but the next.js dev process will fail because the debug stack has not yet created the files needed by
sst-env
. Alternatively, could
sst-env
rather than die and kill the process. The
sst-env
process could output a message to STDOUT, wait and retry until the file content exists. This way starting the processes in parallel would work and no additional process coordination would be needed.
Happy to submit a PR for the wait approach if you think it is the appropriate path.
f
Hey @Alistair Stead, yeah that’s a good idea!
Btw, have you ever had the case where you wanted to use
sst-env
with the deployed app? ie. after running
sst deploy
.
a
Not yet. I could add the keep alive to a flag?
f
sure let’s do that!
a
f
Thanks @Alistair Stead, saw you just pushed something. I will take a look and try to merge it in today.
a
Thanks @Frank I've updated the PR and been using it as part of my local dev for a few days. Seems to work well within a turbo pipeline
f
Hey @Alistair Stead this is released in 0.69.3!
We made waiting the default behavior!
a
Awesome. Thanks