chore: add vercel.json for routing rewrites to external documentation and update base paths in vite.config.ts and router

This commit is contained in:
Rotimi Best
2025-12-21 21:32:56 +00:00
parent d12085917f
commit 006322b7ca
5 changed files with 10 additions and 1 deletions
@@ -1 +0,0 @@
<slot />
+8
View File
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/docs/:path*",
"destination": "https://ciodocs.vercel.app/:path*"
}
]
}
+1
View File
@@ -4,6 +4,7 @@ import { routeTree } from './routeTree.gen';
export function getRouter() {
return createTanStackRouter({
basepath: '/docs',
defaultNotFoundComponent: NotFound,
defaultPreload: 'intent',
routeTree,
+1
View File
@@ -7,6 +7,7 @@ import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import tsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
base: '/docs/',
server: {
port: 3000
},