Docs: Explain different export formats of next.config.js
#51848
Labels
Documentation
Related to Next.js' official documentation.
linear: dx
Confirmed issue that is tracked by the DX team.
What is the improvement or update you wish to see?
Info about various forms
next.config.js
can take in addition to the default (mjs
,function
,async function
) should move from/docs/app/api-reference/next-config-js/pageExtensions to /docs/app/api-reference/next-config-js.
Is there any context that might help us understand?
Prior to #50701, the info I think should be moved was located in docs/api-reference/next.config.js/introduction.md, but shown at https://nextjs.org/docs/app/api-reference/next-config-js/pageExtensions. See my previous issue (which predates #50701): #50192
As part of #50701, this content was moved to docs/02-app/02-api-reference/05-next-config-js/pageExtensions.mdx (permalink).
I think it would be more useful / intuitive if it was in docs/02-app/02-api-reference/05-next-config-js/index.mdx (permalink).
Aside (I can open another issue for this if desired): documentation of
defaultConfig
is difficult to locate, not on either of these pages, and not found via search. Just a simple example would be nice, as is done forphase
.DX-1709
The text was updated successfully, but these errors were encountered: