Derek Curtis
06/15/2022, 6:28 PMREACT_APP_
. The frontend is using a React site, but it was not created with create-react-app
. I have added @serverless-stack/static-site-env
to the frontend project and I have added sst-env --
to the start command. I run npx sst start --profile sandbox --stage sandbox
on my root project and then run npm run start
in my frontend project. None of the REACT_APP_
environment variables have values in the frontend project. Is this because I am not using create-react-app
? If so, is there a way I can get these values passed to the frontend?Frank
REACT_APP_
is specific to CRA https://create-react-app.dev/docs/adding-custom-environment-variables/Frank
REACT_APP_*
. For Next.js it’s NEXT_PUBLIC_*
. You’d need to find out what that is for the framework u r using.Derek Curtis
06/16/2022, 10:50 AM