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:
@@ -1 +0,0 @@
|
||||
<slot />
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/docs/:path*",
|
||||
"destination": "https://ciodocs.vercel.app/:path*"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import { routeTree } from './routeTree.gen';
|
||||
|
||||
export function getRouter() {
|
||||
return createTanStackRouter({
|
||||
basepath: '/docs',
|
||||
defaultNotFoundComponent: NotFound,
|
||||
defaultPreload: 'intent',
|
||||
routeTree,
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user