Hello people, How do I avoid this being displayed ...
# help
m
Hello people, How do I avoid this being displayed instead of my React Site when I click on SiteUrl: while I am doing
npx sst start --stage dev
. Just to be clear, I want my React Frontend to be available on the SiteUrl: while I am running the
sst start
locally.
t
hey when running in local mode you should run your frontend locally
when you deploy to prod this will actually work
m
Hey @thdxr yes, you are right, while working on the code I am running the frontend on my local machine, but I have a few colleagues and it's not clear while the deployed frontend on DEV stage is not available while I am running
npx sst start --stage dev
. I am aware that when I do
npx sst deploy --stage dev
the Frontend will be back online, but why is it not working while I am changing the code locally. Plus it's a problem when you have a several developers working on the same code, which means that dev stage is not available for the rest of my colleagues. Hey @Frank do you might have an insight on this too?
t
I think the issue is sharing development environments in this way
You should use personal stages for
sst start
(if you don't pass --stage it will use an autogenerated one just for you)
we have this doc going over these workflows: https://docs.serverless-stack.com/working-with-your-team
f
Hey @Meris Tarhanis like Dax mentioned, would it work for you if each person run sst start in their own stage?
This is what we do as well. I ran sst start —stage frank when I'm working on stuff.
In essence not run sst start against a shared stage
Lemme know if that makes sense