The solution is easy: adding a robots.txt in the build dir.
The problem is to be extra-sure we don't add that in production, but only in staging env!
We can't be sure about this since the same yarn build command is used, and the NODE_ENV variable is apparently not correctly set (@marcofugaro told me, but is that true?).
Seems like the best option could be to use something like:
The solution is easy: adding a
robots.txt
in thebuild
dir. The problem is to be extra-sure we don't add that in production, but only in staging env!We can't be sure about this since the same
yarn build
command is used, and theNODE_ENV
variable is apparently not correctly set (@marcofugaro told me, but is that true?). Seems like the best option could be to use something like: