refactor: display readme correctly

This commit is contained in:
iCrawl
2023-11-08 14:49:28 +01:00
parent fcfe5cf142
commit 34d0224b68
7 changed files with 108 additions and 23 deletions

View File

@@ -12,7 +12,7 @@ const sql = connect({
},
});
export const fetchVersions = cache(async (packageName: string) => {
export const fetchVersions = cache(async (packageName: string): Promise<string[]> => {
if (process.env.NEXT_PUBLIC_LOCAL_DEV || process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview') {
return ['main'];
}