mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This is just an exploration into a deferred entries hook in `next.config` to allow waiting to build specific entries until all other entries have processed allowing external discovery of assets from compilation that can be used in building these deferred entries. x-ref: [slack thread](https://vercel.slack.com/archives/C09125LC4AX/p1767991281352189?thread_ts=1766951034.768869&cid=C09125LC4AX)
13 lines
253 B
TypeScript
13 lines
253 B
TypeScript
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
type Data = {
|
|
message: string
|
|
}
|
|
|
|
export default function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse<Data>
|
|
) {
|
|
res.status(200).json({ message: 'Hello from pages API route' })
|
|
}
|