React app not working in the github pages

Viewed 26

I made a React app. then publish it to Github pages, But github pages is not showing.
It appeared like this screenshot It work good in the local server.
this is package.json

{
    ...
    "homepage": "https://a7med3bdulbaset.github.io/template-react-stylish",
    ...
    "scripts": {
        "dev": "vite",
        "build": "vite build",
        "predeploy": "npm run build",
        "deploy": "gh-pages -d dist",
        "preview": "vite preview"
    },
    ...
    "devDependencies": {
        "@types/react": "^18.0.17",
        "@types/react-dom": "^18.0.6",
        "@vitejs/plugin-react": "^2.1.0",
        "gh-pages": "^4.0.0",
        "vite": "^3.1.0"
    }
}
0 Answers
Related