next.js/test/e2e/app-dir/revalidate-dynamic/app/api/revalidate-path/route.js
route.js8 lines212 B
import { NextResponse } from 'next/server'
import { revalidatePath } from 'next/cache'

export async function GET(req) {
  revalidatePath('/')
  return NextResponse.json({ revalidated: true, now: Date.now() })
}
Quest for Codev2.0.0
/
SIGN IN