chore: update nitro configuration in vite.config.ts to include proxy settings for routing

This commit is contained in:
Rotimi Best
2025-12-21 19:00:09 +00:00
parent 2ae49fdb28
commit 477ace9e2c
+10 -1
View File
@@ -21,6 +21,15 @@ export default defineConfig({
react(),
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
// we configured nitro by default
nitro()
nitro({
routeRules: {
'/': {
proxy: 'https://classroomio-com.vercel.app/'
},
'/:match*': {
proxy: 'https://classroomio-com.vercel.app/:match*'
}
}
})
]
});