I have the following scripts
object in my package.json
:
"scripts": {
"build-css": "node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss",
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss --watch --recursive",
"start-js": "react-scripts start",
"start": "npm-run-all -p watch-css start-js",
"build-js": "react-scripts build",
"build": "npm-run-all build-css build-js",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
My application is starting with http://localhost:3000
on my local machine, and on my NGINX
with the URL that I have configured.
I would like to have a path added to both URLs like this
http://localhost:3000/subpath/
or for my server {url}/subpath/
Is there an easy way to do it? Some solutions I find looked unnecessarily difficult.