Skip to content

Conversation

@ceciliazaragoza
Copy link
Collaborator

@ceciliazaragoza ceciliazaragoza commented Nov 13, 2025

  • Make API_URL dynamic based on the environment.
  • Environment handled by vite. When working locally, vite is in DEV mode, or environment, and when deployed, vite is in PROD mode, or environment.
    • When run npm run build and vite build is created, that build is in PROD mode.
    • We can dynamically have environment variables depending on the environment which are used to create API_URL
  • The dondi.github.io was added as a CorsOrigin so that the react app can access the server.

…es. environment variables are dynamic depending on what environment (local or prod) the app is being run in
@coveralls
Copy link

coveralls commented Nov 19, 2025

Coverage Status

coverage: 80.06%. remained the same
when pulling 9843c79 on cecilia-1265
into 569311d on beta.

@ceciliazaragoza ceciliazaragoza marked this pull request as ready for review November 19, 2025 15:34
@ceciliazaragoza ceciliazaragoza changed the title 1265: Configure Prod React App to Access Server #1265: Configure Prod React App to Access Server Nov 19, 2025
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

Successfully merging this pull request may close these issues.

3 participants