From b7577cb26fe17fb1ea22d282f085f0efd3fff930 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Mon, 15 Sep 2025 21:29:21 +0800 Subject: [PATCH] ci: change site domain name --- src/router/index.tsx | 4 +--- vite.config.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/router/index.tsx b/src/router/index.tsx index ca96b7e..96ea9e9 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -29,8 +29,6 @@ const router = createBrowserRouter([ }, ], }, -], { - basename: process.env.NODE_ENV === 'production' ? '/react-template' : '/' -}) +]) export default router diff --git a/vite.config.ts b/vite.config.ts index aaeb578..dfad972 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,6 @@ import tailwindcss from "@tailwindcss/vite" // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], - base: process.env.NODE_ENV === 'production' ? '/react-template/' : '/', resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)),