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)),