Skip to content

Commit f832c56

Browse files
authored
[docs] fix next.config.mjs using commonjs in the example (#57874)
make sure `next.config.mjs` uses `export` instead of `module.exports`
1 parent bb09c4d commit f832c56

File tree

1 file changed

+1
-1
lines changed
  • docs/02-app/02-api-reference/05-next-config-js

1 file changed

+1
-1
lines changed

docs/02-app/02-api-reference/05-next-config-js/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default nextConfig
3434
You can also use a function:
3535

3636
```js filename="next.config.mjs"
37-
module.exports = (phase, { defaultConfig }) => {
37+
export default (phase, { defaultConfig }) => {
3838
/**
3939
* @type {import('next').NextConfig}
4040
*/

0 commit comments

Comments
 (0)