Hello i have a reactjs app, and I build my project with bellow command
npm build
Here is my package.json file:
package.json
// package.json { "name": "your-project-name", "version": "0.1.0", "homepage": "./", # <--- Add this line ---- ... }
Run npm run build again.
npm run build
This will change the path to ./, which is the relative path of your project.
./