You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2021. It is now read-only.
When using the PUBLIC_URL field in .env and then running npm run build the build succeeds but the PUBLIC_URL is not set. Seems that rescripts is ignoring the environmant variable. When setting homepage in package.json PUBLIC_URL is set. This works in a base react-scripts app as well as with react-scripts-rewired. But when moving to rescripts it no longer works.
Description
When using the
PUBLIC_URLfield in.envand then runningnpm run buildthe build succeeds but thePUBLIC_URLis not set. Seems that rescripts is ignoring the environmant variable. When settinghomepagein package.jsonPUBLIC_URLis set. This works in a base react-scripts app as well as with react-scripts-rewired. But when moving to rescripts it no longer works.@rescripts/cli@0.0.11@rescripts/rescript-env@0.0.11react-scripts@3.0.1Expected Behavior
URLs using the
PUBLIC_URLvariable should be set using thePUBLIC_URLenvironment variable.Current Workaround
Add the url to your package.json as
'homepage'