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

15 lines
294 B
JavaScript

import Module from 'module'
const require = Module.createRequire(import.meta.url)
/** @type {import('next').NextConfig} */
const nextConfig = {
adapterPath: require.resolve('./my-adapter.mjs'),
i18n: {
locales: ['en', 'fr'],
defaultLocale: 'en',
},
}
export default nextConfig