chore: update vercel.json and vite.config.ts for improved routing to /docs

This commit is contained in:
Rotimi Best
2025-12-21 20:55:10 +00:00
parent d410179a1f
commit ead4593ad9
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"rewrites": [
{ "source": "/", "destination": "https://classroomio-com.vercel.app/" },
{ "source": "/:match*", "destination": "https://classroomio-com.vercel.app/:match*" }
{ "source": "/docs", "destination": "https://classroomio-com.vercel.app/docs" },
{ "source": "/docs/:match*", "destination": "https://classroomio-com.vercel.app/docs/:match*" }
]
}
+8 -8
View File
@@ -22,14 +22,14 @@ export default defineConfig({
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
// we configured nitro by default
nitro({
routeRules: {
'/': {
proxy: 'https://classroomio-com.vercel.app/'
},
'/:match*': {
proxy: 'https://classroomio-com.vercel.app/:match*'
}
}
// routeRules: {
// '/': {
// proxy: 'https://classroomio-com.vercel.app/'
// },
// '/:match*': {
// proxy: 'https://classroomio-com.vercel.app/:match*'
// }
// }
})
]
});