Skip to content

Commit

Permalink
don't cache unplugged
Browse files Browse the repository at this point in the history
  • Loading branch information
regulad committed Aug 5, 2024
1 parent 70fd24b commit 8346dfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/api/cron/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jest.mock("%/database/prisma.ts", () => ({
stripeCustomer: {
findUnique: jest.fn(),
},
})
}),
}));

jest.mock("next/server", () => ({
Expand Down
4 changes: 4 additions & 0 deletions apps/web/src/app/api/render/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export async function GET(
{
width: dimensions.width,
height: dimensions.height,
headers: {
"Cache-Control": "no-store, max-age=0",
Pragma: "no-cache",
},
},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import createStripeClient from "@/utils/stripe/server.ts";
import { createClient } from "@/utils/supabase/server.ts";
import { getQueryForToast } from "@/utils/toast-utils.ts";
import * as Sentry from "@sentry/nextjs";
import { NextRequest, NextResponse } from "next/server";
import { NextResponse } from "next/server";

export const dynamic = "force-dynamic";

Expand Down

0 comments on commit 8346dfa

Please sign in to comment.