next.js/test/production/app-dir/ssg-single-pass/app/revalidate/route.ts
route.ts9 lines189 B
import { NextResponse } from 'next/server'
import { revalidatePath } from 'next/cache'

export async function GET() {
  revalidatePath('/')

  return NextResponse.json({ success: true })
}
Quest for Codev2.0.0
/
SIGN IN