mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Tweaks the environment label logic to only use label things as `Prefetch` if there's a runtime prefetch config. If there's none, we label it as `Prefetchable` instead. --------- Co-authored-by: Josh Story <[email protected]>
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import { revalidatePath } from 'next/cache'
|
|
|
|
export async function GET(request: Request) {
|
|
const path = new URL(request.url).searchParams.get('path')!
|
|
revalidatePath(path)
|
|
|
|
return Response.json({ revalidated: true })
|
|
}
|