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:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user