eiger
eiger
RRailway
Created by eiger on 6/2/2023 in #✋|help
API key not recognized on deployment, even after declaring the variable (Project type: NodeJS/React)
So, I found the solution to my Issue: The YOUR_API_KEY should have been like that => REACT_APP_YOUR_API_KEY (and MUST be declared like that in both the code + the dashboard/env file otherwise it isn't recognized) That should solve that issue. For more documentation : https://create-react-app.dev/docs/adding-custom-environment-variables/
13 replies
RRailway
Created by eiger on 6/2/2023 in #✋|help
API key not recognized on deployment, even after declaring the variable (Project type: NodeJS/React)
No problem, thank you for trying to look at it anyways! 😄 (and it can happen to anyone, don't worry!)
13 replies
RRailway
Created by eiger on 6/2/2023 in #✋|help
API key not recognized on deployment, even after declaring the variable (Project type: NodeJS/React)
13 replies
RRailway
Created by eiger on 6/2/2023 in #✋|help
API key not recognized on deployment, even after declaring the variable (Project type: NodeJS/React)
The deployment and build succeeds on Railway (same on Netlify), but the website doesn't have the expected behavior (meaning that the articles are not fetched nor displayed in the website).
13 replies