chore: update vercel.json for improved routing to documentation and add asset path rewrites
This commit is contained in:
@@ -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*"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen';
|
||||
|
||||
export function getRouter() {
|
||||
return createTanStackRouter({
|
||||
basepath: '/docs',
|
||||
defaultNotFoundComponent: NotFound,
|
||||
defaultPreload: 'intent',
|
||||
routeTree,
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user