mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
When using `nextConfig.i18n`, then static files for `404.html` and `500.html` were added multiple times to the list. These duplicate entries in `outputs.staticFiles` ended up causing race conditions in the Vercel adapter because the same output file path was written concurrently by multiple file operations.
6 lines
174 B
TypeScript
6 lines
174 B
TypeScript
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
|
res.status(200).json(req.query)
|
|
}
|