Unverified Commit f832c56a authored by Gal Schlezinger's avatar Gal Schlezinger Committed by GitHub

[docs] fix next.config.mjs using commonjs in the example (#57874)

make sure `next.config.mjs` uses `export` instead of `module.exports`
parent bb09c4d2
......@@ -34,7 +34,7 @@ export default nextConfig
You can also use a function:
```js filename="next.config.mjs"
module.exports = (phase, { defaultConfig }) => {
export default (phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment