Skip to content

Commit

Permalink
Merge pull request #1434 from hey-api/docs/clean-urls
Browse files Browse the repository at this point in the history
docs: use clean urls
  • Loading branch information
mrlubos authored Dec 14, 2024
2 parents 42a9920 + 5585805 commit 4d1a729
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
@@ -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' }],
Expand Down
15 changes: 15 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 4d1a729

Please sign in to comment.