-
I am following this instructions regarding environment files for react apps https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used. All nice and clear. I set up my |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
We don't accept the upload of Example:
|
Beta Was this translation helpful? Give feedback.
-
Multiple environments are available in Now 18.0.0 and on the dashboard today! This should solve your problem for needing multiple
Any file with |
Beta Was this translation helpful? Give feedback.
-
I am really struggling to deploy a Nuxt project with environment variables in production or preview. I use one to pass attach an authorization header to an API call. It works absolutely fine in local development using It's in my now.json:
...and I refer to I have a DB connection URI that is also an env and is working, so I thought the issue might be because there is a space in this one. Tried from the CLI inside quotes. No dice. Have deleted and re-tried many times, including from the new UI. Any ideas if there is something obvious I'm missing, perhaps about using env in API calls or server vs client side? C |
Beta Was this translation helpful? Give feedback.
Multiple environments are available in Now 18.0.0 and on the dashboard today!
This should solve your problem for needing multiple
.env
files.Any file with
.env
is intentionally ignored from our system for security purposes because these files typically contain plain text secrets. Its better to use our system to manage secrets withnow env
command or in the dashboard.