Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Interpolate %REACT_APP_...% in public/robots.txt #8004
Is your proposal related to a problem?
IMHO it would be more consistent to apply this to all files in
This has also come up on #6568.
Describe the solution you'd like
Be able to use
Describe alternatives you've considered
Injecting the correct values in as part of our deployment process.
The docs are little inconsistent on this: The ones for the public folder in general state:
But then the env vars docs state:
Our string interpolation is pretty much a regex replace for
I'm not necessarily against this, just thinking out loud. We could have a whitelist that clears
And also, as I said in that other thread, there's really nothing wrong with having a custom post-build script that does this for you. People always seem allergic to it, but it's really very easy to set up and maintain.