Setting base href using Environment variables
This problem was solved. Follow these steps:
- In package.json Set
homepage
key to""
- In .env.staging file Set
PUBLIC_URL=/survey
- No need to use
<base href>
. Can be removed from HTML file Change links for stylesheet to
<link rel="stylesheet" href="%PUBLIC_URL%/vendor/bootstrap/css/bootstrap.min.css">
No need to add process.env