diff --git a/apps/web/pages/apps/[slug]/index.tsx b/apps/web/pages/apps/[slug]/index.tsx index ab5d8b7bcd..03c3ffe37b 100644 --- a/apps/web/pages/apps/[slug]/index.tsx +++ b/apps/web/pages/apps/[slug]/index.tsx @@ -54,7 +54,7 @@ export const getStaticPaths: GetStaticPaths<{ slug: string }> = async () => { return { paths, - fallback: false, + fallback: "blocking", }; }; @@ -62,7 +62,7 @@ export const getStaticProps = async (ctx: GetStaticPropsContext) => { if (typeof ctx.params?.slug !== "string") return { notFound: true }; const app = await prisma.app.findUnique({ - where: { slug: ctx.params.slug }, + where: { slug: ctx.params.slug.toLowerCase() }, }); if (!app) return { notFound: true };