force dynamic

This commit is contained in:
Torben Haack 2024-10-09 14:53:59 +02:00
parent 61f2669746
commit c704db14a4
3 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { getPrinters } from "@/server/actions/printers";
export const dynamic = 'force-dynamic';
export const dynamic = "force-dynamic";
export async function GET() {
const printers = await getPrinters();

View File

@ -7,6 +7,8 @@ import { eq } from "drizzle-orm";
import { generateIdFromEntropySize } from "lucia";
import { cookies } from "next/headers";
export const dynamic = "force-dynamic";
export async function GET(request: Request): Promise<Response> {
const url = new URL(request.url);
const code = url.searchParams.get("code");

View File

@ -2,6 +2,8 @@ import { github } from "@/server/auth/oauth";
import { generateState } from "arctic";
import { cookies } from "next/headers";
export const dynamic = "force-dynamic";
export async function GET(): Promise<Response> {
const state = generateState();
const url = await github.createAuthorizationURL(state);