Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81582f commit 229b2e2Copy full SHA for 229b2e2
examples/e2e/app-router/app/api/isr/route.ts
@@ -1,15 +1,11 @@
1
-import fs from "node:fs/promises";
2
-import path from "node:path";
3
import type { NextRequest } from "next/server";
4
import { NextResponse } from "next/server";
5
6
export const dynamic = "force-dynamic";
7
8
// This endpoint simulates an on demand revalidation request
9
export async function GET(request: NextRequest) {
10
- const cwd = process.cwd();
11
-
12
- let manifest;
+ let manifest: { preview: { previewModeId: string } };
13
// this fails at build time when next.js tries to evaluate the route
14
try {
15
// @ts-expect-error
0 commit comments