I'm trying to deploy a react app on gh-pages and I have done it successfully, but after deploying I did run again the app on local server to add some new feature, I seen that is dose not loading images which was loaded before.
{
"name": "react-tesla-clone",
"homepage": "https://elbeicktalat.github.io/react-tesla-clone",
"version": "0.1.0",
"private": true,
"dependencies": {...},
"scripts": {
"predeploy": "yarn run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"devDependencies": {
"gh-pages": "^3.2.3"
}
}
Before gh-pages setting up
After gh-pages setting up
So what is the solution?


Aucun commentaire:
Enregistrer un commentaire