chore: update vercel.json and vite.config.ts for improved routing to /docs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{ "source": "/", "destination": "https://classroomio-com.vercel.app/" },
|
{ "source": "/docs", "destination": "https://classroomio-com.vercel.app/docs" },
|
||||||
{ "source": "/:match*", "destination": "https://classroomio-com.vercel.app/:match*" }
|
{ "source": "/docs/:match*", "destination": "https://classroomio-com.vercel.app/docs/:match*" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,14 +22,14 @@ export default defineConfig({
|
|||||||
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
|
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
|
||||||
// we configured nitro by default
|
// we configured nitro by default
|
||||||
nitro({
|
nitro({
|
||||||
routeRules: {
|
// routeRules: {
|
||||||
'/': {
|
// '/': {
|
||||||
proxy: 'https://classroomio-com.vercel.app/'
|
// proxy: 'https://classroomio-com.vercel.app/'
|
||||||
},
|
// },
|
||||||
'/:match*': {
|
// '/:match*': {
|
||||||
proxy: 'https://classroomio-com.vercel.app/:match*'
|
// proxy: 'https://classroomio-com.vercel.app/:match*'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user