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:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.6 KiB |
@@ -29,6 +29,8 @@ const router = createBrowserRouter([
|
||||
},
|
||||
],
|
||||
},
|
||||
])
|
||||
], {
|
||||
basename: process.env.NODE_ENV === 'production' ? '/react-template' : '/'
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user