Skip to content

Commit

Permalink
Turn off revalidate cache
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanDragicevic committed Jul 11, 2024
1 parent 56d59ac commit 420a848
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/get-report-pdf/route.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { CxReportsClient } from "@cx-reports/api-client";
import { NextRequest, NextResponse } from "next/server";
import { NextRequest } from "next/server";

let client = new CxReportsClient({
baseUrl: process.env.BASE_URL!,
authToken: process.env.AUTH_TOKEN!,
defaultWorkspaceId: process.env.DEFAULT_WORKSPACE_ID,
});

export const revalidate = 0;

export async function GET(req: NextRequest) {
const url = new URL(req.url);
const searchParams = new URLSearchParams(url.searchParams);
Expand Down

0 comments on commit 420a848

Please sign in to comment.