DoubleK78 / zaeshop

0 stars 1 forks source link

Create a subdomain for website located on GitHub Pages #131

Closed kietdev1 closed 11 months ago

kietdev1 commented 11 months ago

Link: https://sean-coughlin.medium.com/how-to-host-a-site-with-a-subdomain-on-github-pages-33202341f711

old logic "scripts": { "start": "PUBLIC_URL=/ react-scripts start", <-- Add PUBLIC_URL=/ when we don't have a domain. "build": "react-scripts build --no-warnings && cp build/index.html build/404.html", "test": "react-scripts test", "eject": "react-scripts eject" }, "homepage": "https://kietdev1.github.io/zaeshop", <-- Add homepage when we don't have a domain. "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] },