Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create environment variables to switch between DEV and PROD servers #49

Open
amellie opened this issue Jul 23, 2022 · 0 comments
Open
Assignees

Comments

@amellie
Copy link
Collaborator

amellie commented Jul 23, 2022

User Story

As a developer
I would like to run my app locally or in production easily
So that I do not need to modify hardcoded URLs (or any other settings) before running the app

Requirements

  • URLs, including database and end point URLs should not be hardcoded. They should be stored in the environment variables
  • Ensure that passwords are not hardcoded
  • The path to the upload folder should also be put as part of the environment variable, so that the client can change the folder name/location of the folder if necessary

See https://trekinbami.medium.com/using-environment-variables-in-react-6b0a99d83cf5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants