Skip to content

Commit

Permalink
fix: path generation
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Nov 30, 2022
1 parent 2849af0 commit 4ae029d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export default withBundleAnalyzer({
eslint: {
ignoreDuringBuilds: true,
},
// Until Next.js fixes their type issues
typescript: {
ignoreBuildErrors: true,
},
cleanDistDir: true,
outputFileTracing: true,
experimental: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Providers } from './providers';
import { CmdKDialog } from '~/components/CmdK';
import { Header } from '~/components/Header';

export default function SidebarLayout({ children }: PropsWithChildren<any>) {
export default function SidebarLayout({ children }: PropsWithChildren) {
return (
<Providers>
<Header />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ import { tryResolveDescription } from '~/util/summary';
export async function generateStaticParams({ params }: { params: { package: string } }) {
const packageName = params.package;

if (!packageName) {
return [{ slug: [] }];
}

try {
let data: any[] = [];
let versions: string[] = [];
Expand Down Expand Up @@ -107,7 +111,7 @@ export async function generateStaticParams({ params }: { params: { package: stri
}),
];
} catch {
return { slug: [] };
return [{ slug: [] }];
}
}

Expand Down

1 comment on commit 4ae029d

@vercel
Copy link

@vercel vercel bot commented on 4ae029d Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.