We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HI, I'm posting this here, because the question in SO got no answers yet:
I'm having trouble getting a create-react-app based application to correctly load environment variables containing double quotes:
First the dokku config shows this:
dokku config admin =====> admin config vars REACT_APP_API: "https://example.com" dokku@DokkuVM:~$
and my fetch calls look like this:
fetch(`${process.env.REACT_APP_API}/api/v1/whatever`)
which webpack compiles to (and of course does not work):
fetch(("\"https://example.com\"") + '/api/v1/whatever')
A similar setup is working locally, in my .env file I have:
REACT_APP_API="http://example.com"
The text was updated successfully, but these errors were encountered:
Just not using quotes at all worked, closing this.
Sorry, something went wrong.
No branches or pull requests
HI, I'm posting this here, because the question in SO got no answers yet:
I'm having trouble getting a create-react-app based application to correctly load environment variables containing double quotes:
First the dokku config shows this:
and my fetch calls look like this:
which webpack compiles to (and of course does not work):
A similar setup is working locally, in my .env file I have:
The text was updated successfully, but these errors were encountered: