Skip to content

Scheduling infrastructure for absolutely everyone.

fix: case-sensitivity in apps path (#6552)

Nafees Nazikda0ea5d9d036
diff --git a/apps/web/pages/apps/[slug]/index.tsx b/apps/web/pages/apps/[slug]/index.tsx
index ab5d8b7bcdb..03c3ffe37b1 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 };