chore: update vercel.json for improved routing to documentation and add asset path rewrites

This commit is contained in:
Rotimi Best
2025-12-21 21:53:24 +00:00
parent 2591dad3de
commit f4739a1b38
3 changed files with 6 additions and 4 deletions
+6 -2
View File
@@ -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*"
}
]
}
-1
View File
@@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen';
export function getRouter() {
return createTanStackRouter({
basepath: '/docs',
defaultNotFoundComponent: NotFound,
defaultPreload: 'intent',
routeTree,
-1
View File
@@ -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
},