File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
e2e/app-router/app/api/isr
next-partial-prerendering Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1- import fs from "node:fs/promises" ;
2- import path from "node:path" ;
31import type { NextRequest } from "next/server" ;
42import { NextResponse } from "next/server" ;
53
64export const dynamic = "force-dynamic" ;
75
86// This endpoint simulates an on demand revalidation request
97export async function GET ( request : NextRequest ) {
10- const cwd = process . cwd ( ) ;
11-
12- let manifest ;
8+ let manifest : { preview : { previewModeId : string } } ;
139 // this fails at build time when next.js tries to evaluate the route
1410 try {
1511 // @ts -expect-error
Original file line number Diff line number Diff line change 11{
2- "name" : " next-partial-prerendering" ,
32 "private" : true ,
43 "name" : " next-partial-prerendering" ,
54 "scripts" : {
You can’t perform that action at this time.
0 commit comments