Files
Niklas MischkulnigandGitHub db1f3a64da Fix duplicate static files in adapter (#95681)
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.
2026-07-13 09:44:27 +02:00

13 lines
270 B
JavaScript

import fs from 'fs/promises'
// @ts-check
/** @type {import('next').NextAdapter} */
const adapter = {
name: 'i18n-test-adapter',
async onBuildComplete(ctx) {
await fs.writeFile('build-complete.json', JSON.stringify(ctx, null, 2))
},
}
export default adapter