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.
15 lines
294 B
JavaScript
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
|