I have deployed my project on github pages but i had this page when i opened the link in gh-pages setting :
My package.json :
{
"homepage": "https://Meriemu.github.io/map-mapbox-js",
"name": "map-mapbox",
"scripts": {
"deploy": "gh-pages -d build",
"sass": "sass scss:public",
"sass:dev": "sass --watch --embed-source-map scss:public/styles",
"sass:prod": "sass --no-source-map --style compressed scss:public/styles"
},
"dependencies": {
"gh-pages": "^4.0.0"
},
"version": "1.0.0",
..
....
..
.
}
CodePudding user response:
I can see your page if I visit https://meriemu.github.io/map-mapbox-js/public/, which is where your index.html
file is located.
The 404 error page explains the issue as well:
For root URLs (like http://example.com/) you must provide an index.html file.