feat(router): add basename configuration for production env
Update router configuration to use '/react-template' as basename in production and '/' in development. Also update index.html title to reflect project name.
This commit is contained in:
@@ -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