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
+3 -1
View File
@@ -29,6 +29,8 @@ const router = createBrowserRouter([
},
],
},
])
], {
basename: process.env.NODE_ENV === 'production' ? '/react-template' : '/'
})
export default router