From f4739a1b3872ad106ae19fb808830dd1bc0cc1c9 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 21 Dec 2025 21:53:24 +0000 Subject: [PATCH] chore: update vercel.json for improved routing to documentation and add asset path rewrites --- apps/classroomio-com/vercel.json | 8 ++++++-- apps/docs/src/router.tsx | 1 - apps/docs/vite.config.ts | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/classroomio-com/vercel.json b/apps/classroomio-com/vercel.json index 1f0de688..74dc6b97 100644 --- a/apps/classroomio-com/vercel.json +++ b/apps/classroomio-com/vercel.json @@ -2,11 +2,15 @@ "rewrites": [ { "source": "/docs", - "destination": "https://ciodocs.vercel.app/docs" + "destination": "https://ciodocs.vercel.app" }, { "source": "/docs/:path*", - "destination": "https://ciodocs.vercel.app/docs/:path*" + "destination": "https://ciodocs.vercel.app/:path*" + }, + { + "source": "/assets/:path*", + "destination": "https://ciodocs.vercel.app/assets/:path*" } ] } diff --git a/apps/docs/src/router.tsx b/apps/docs/src/router.tsx index cf81bef7..3a956b5f 100644 --- a/apps/docs/src/router.tsx +++ b/apps/docs/src/router.tsx @@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen'; export function getRouter() { return createTanStackRouter({ - basepath: '/docs', defaultNotFoundComponent: NotFound, defaultPreload: 'intent', routeTree, diff --git a/apps/docs/vite.config.ts b/apps/docs/vite.config.ts index 994ff53f..83f43c38 100644 --- a/apps/docs/vite.config.ts +++ b/apps/docs/vite.config.ts @@ -7,7 +7,6 @@ import { tanstackStart } from '@tanstack/react-start/plugin/vite'; import tsConfigPaths from 'vite-tsconfig-paths'; export default defineConfig({ - base: '/docs/', server: { port: 3000 },