mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This adds some additional API surface for `build-complete` adapter hook. Wiring up prerenders and additional configs.
12 lines
260 B
TypeScript
12 lines
260 B
TypeScript
import { NextRequest, NextResponse } from 'next/server'
|
|
|
|
export const dynamic = 'force-static'
|
|
|
|
export async function GET(req: NextRequest, { params }) {
|
|
console.log(req.url.toString(), await params)
|
|
|
|
return NextResponse.json({
|
|
now: Date.now(),
|
|
})
|
|
}
|