Skip to content

Commit

Permalink
Merge pull request #192 from sametcodes/develop
Browse files Browse the repository at this point in the history
Revert "feat(#186): configured static params for build lists"
  • Loading branch information
sametcodes authored Apr 27, 2023
2 parents 9bce9fe + 5fd63b3 commit 5c35b07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions app/build/[...ids]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export const dynamic = "force-static";

export async function generateStaticParams() {
const queries = await prisma.platformQuery.findMany({ select: { id: true } });
return queries.map((query) => ({ ids: [query.id] }));
}

import { getServerSession } from "next-auth/next";
import { authOptions } from "@/pages/api/auth/[...nextauth]";
import { validations } from "@/platforms";
Expand Down
2 changes: 0 additions & 2 deletions app/build/list/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const dynamic = "force-static";

import prisma from "@/services/prisma";
import { Platform, PlatformCode, PlatformQuery } from "@prisma/client";
import { templates, samples } from "@/platforms";
Expand Down

1 comment on commit 5c35b07

@vercel
Copy link

@vercel vercel bot commented on 5c35b07 Apr 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

readmerocks – ./

readme.rocks
readmerocks-sametcodes.vercel.app
readmerocks-git-main-sametcodes.vercel.app
www.readme.rocks

Please sign in to comment.