From 9a7b2d5adf9052afd127f138940a1574dcf26e25 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 Aug 2025 01:09:46 +0000 Subject: [PATCH 1/2] Initial plan From 26219e2582201b7cd2aa1f191258cd4f02532f73 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 Aug 2025 01:14:26 +0000 Subject: [PATCH 2/2] Fix GitHub Pages deployment configuration for project pages Co-authored-by: aabs <157775+aabs@users.noreply.github.com> --- public/404.html | 2 +- src/main.tsx | 2 +- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/404.html b/public/404.html index 513bfeb..07fc412 100644 --- a/public/404.html +++ b/public/404.html @@ -22,7 +22,7 @@ // then set pathSegmentsToKeep to 1 so that routes like /repo-name/about will // become /repo-name/?/about, and not /?/repo-name/about. - var pathSegmentsToKeep = 0; + var pathSegmentsToKeep = 1; var l = window.location; l.replace( diff --git a/src/main.tsx b/src/main.tsx index 1962a65..9fde137 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -8,7 +8,7 @@ import App from './App.tsx' createRoot(document.getElementById('root')!).render( - + , diff --git a/vite.config.ts b/vite.config.ts index beb9a76..2365279 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], - base: '/', + base: '/fifthlang.github.io/', })