Skip to content

Commit

Permalink
remove redundant import
Browse files Browse the repository at this point in the history
  • Loading branch information
james-elicx committed Feb 6, 2025
1 parent c81582f commit 229b2e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/e2e/app-router/app/api/isr/route.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import fs from "node:fs/promises";
import path from "node:path";
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";

export const dynamic = "force-dynamic";

// This endpoint simulates an on demand revalidation request
export async function GET(request: NextRequest) {
const cwd = process.cwd();

let manifest;
let manifest: { preview: { previewModeId: string } };
// this fails at build time when next.js tries to evaluate the route
try {
// @ts-expect-error
Expand Down

0 comments on commit 229b2e2

Please sign in to comment.