Skip to content

Commit

Permalink
Force cron page to be dynamic rather than static (because it's a GET …
Browse files Browse the repository at this point in the history
…that's acting like a POST)
  • Loading branch information
PullJosh committed Jul 5, 2024
1 parent 1c31ea7 commit a0e66ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/cron/delete-anonymous-projects/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { NextResponse } from "next/server";
import prisma from "../../../../lib/prisma";
import { s3 } from "../../../../lib/s3";

export const dynamic = "force-dynamic";

export async function GET(request: Request) {
const projects = await prisma.project.findMany({
where: {
Expand Down

0 comments on commit a0e66ac

Please sign in to comment.