fork of hey-api/openapi-ts because I need some additional things

Merge pull request #1434 from hey-api/docs/clean-urls

docs: use clean urls

authored by

Lubos and committed by
GitHub
4d1a729d 42a99204

+16
+1
docs/.vitepress/config/shared.ts
··· 1 1 import { defineConfig, type HeadConfig } from 'vitepress'; 2 2 3 3 export default defineConfig({ 4 + cleanUrls: true, 4 5 head: [ 5 6 ['link', { href: '/logo.png', rel: 'icon', type: 'image/png' }], 6 7 ['meta', { content: 'website', property: 'og:type' }],
+15
docs/vercel.json
··· 1 + { 2 + "buildCommand": "npm run build", 3 + "cleanUrls": true, 4 + "devCommand": "npm run dev", 5 + "framework": "vitepress", 6 + "outputDirectory": ".vitepress/dist", 7 + "redirects": [ 8 + { 9 + "source": "/openapi-ts", 10 + "destination": "/openapi-ts/get-started", 11 + "permanent": true 12 + } 13 + ], 14 + "trailingSlash": false 15 + }