feat: configure base paths for production deployment

Set basename in router and base in vite config for production environment
Update favicon and fix deploy workflow newline
This commit is contained in:
2025-09-15 22:36:01 +08:00
parent c8083c6540
commit 617ca5ee8b
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@ 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)),