chore: refine routing in vercel.json and set consistent base paths in vite.config.ts and router.tsx

This commit is contained in:
Rotimi Best
2025-12-21 22:40:14 +00:00
parent f4739a1b38
commit 8e8ef26d49
3 changed files with 5 additions and 6 deletions
+1
View File
@@ -4,6 +4,7 @@ import { routeTree } from './routeTree.gen';
export function getRouter() {
return createTanStackRouter({
basepath: '/docs',
defaultNotFoundComponent: NotFound,
defaultPreload: 'intent',
routeTree,
+2
View File
@@ -10,6 +10,7 @@ export default defineConfig({
server: {
port: 3000
},
base: '/docs',
plugins: [
mdx(await import('./source.config')),
tailwindcss(),
@@ -21,6 +22,7 @@ export default defineConfig({
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
// we configured nitro by default
nitro({
baseURL: '/docs'
// routeRules: {
// '/': {
// proxy: 'https://classroomio-com.vercel.app/'