I just started adding a separate stage for my deploy's, as I move my project towards beta/release.
I'm finding that when I sst deploy --stage production that my currently running 'dev' stage gets broken, seemingly because the build output from the deploy overwrites/modifies the working files of the 'dev' stage. What I'm seeing is errors on the dev stage saying the files are not found, or that the generated output gets corrupted.
I would have expected each stage to be built in a discrete build directory, but this doesn't seem to be the case, and I don't see CLI options to override this.
Steps:
sst dev next dev and leave it running, project open in the browser
sst deploy --stage production to deploy to the prod/working environment to allow others access for testing
When further navigating in the browser for the dev instance, I start seeing corruptions or errors. If I then re-run sst dev... this resolves and all works as expected.
I just started adding a separate stage for my deploy's, as I move my project towards beta/release.
I'm finding that when I
sst deploy --stage production
that my currently running 'dev' stage gets broken, seemingly because the build output from the deploy overwrites/modifies the working files of the 'dev' stage. What I'm seeing is errors on the dev stage saying the files are not found, or that the generated output gets corrupted.I would have expected each stage to be built in a discrete build directory, but this doesn't seem to be the case, and I don't see CLI options to override this.
Steps:
sst dev next dev
and leave it running, project open in the browsersst deploy --stage production
to deploy to the prod/working environment to allow others access for testingsst dev...
this resolves and all works as expected.How do I make the build artifacts discrete?