Skip to content

Commit

Permalink
Update config for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 10, 2024
1 parent 9649c93 commit c6ae93a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/docs/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export const base = '/';

export const versions = [
['v4', 'v4 (latest)'],
['v5', 'v5 (latest)'],
['v4', 'v4'],
['v3', 'v3'],
];

export const defaultVersion = 'v4';
export const defaultVersion = 'v5';
4 changes: 4 additions & 0 deletions packages/docs/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
},
{
"source": "/v4/:path*",
"destination": "https://knip-dev-v4.vercel.app/v4/:path*"
},
{
"source": "/v5/:path*",
"destination": "/:path*"
}
]
Expand Down

0 comments on commit c6ae93a

Please sign in to comment.