You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next config should be restored in the root directory after build
in the build output dir .next/standalone/ should include both the next config used for build and the user's original config for reference
* Override user's Next Config to optimize the app for Firebase App Hosting
26
31
* and validate that the override resulted in a valid config that Next.js can
27
32
* load.
28
33
*
34
+
* We restore the user's Next Config at the end of the build, after the config file has been
35
+
* copied over to the output directory, so that the user's original code is not modified.
36
+
*
29
37
* If the app does not have a next.config.[js|mjs|ts] file in the first place,
30
38
* then can skip config override.
31
39
*
32
40
* Note: loadConfig always returns a fileName (default: next.config.js) even if
33
41
* one does not exist in the app's root: https://github.com/vercel/next.js/blob/23681508ca34b66a6ef55965c5eac57de20eb67f/packages/next/src/server/config.ts#L1115
0 commit comments