diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 78c980b1c..61b5d01f9 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -1,6 +1,7 @@ import { defineConfig, type HeadConfig } from 'vitepress'; export default defineConfig({ + cleanUrls: true, head: [ ['link', { href: '/logo.png', rel: 'icon', type: 'image/png' }], ['meta', { content: 'website', property: 'og:type' }], diff --git a/docs/vercel.json b/docs/vercel.json new file mode 100644 index 000000000..f75379a1e --- /dev/null +++ b/docs/vercel.json @@ -0,0 +1,15 @@ +{ + "buildCommand": "npm run build", + "cleanUrls": true, + "devCommand": "npm run dev", + "framework": "vitepress", + "outputDirectory": ".vitepress/dist", + "redirects": [ + { + "source": "/openapi-ts", + "destination": "/openapi-ts/get-started", + "permanent": true + } + ], + "trailingSlash": false +}