File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1852,11 +1852,15 @@ export default async function build(
18521852 }
18531853 }
18541854
1855+ // getNextConfigRuntime only filters if experimental.runtimeServerDeploymentId is true,
1856+ // but we unconditionally want to remove configFile for this manifest
1857+ let runtimeConfigWithoutFilePath = { ...runtimeConfig }
1858+ delete ( runtimeConfigWithoutFilePath as NextConfigComplete ) . configFile
1859+
18551860 const serverFilesManifest : RequiredServerFilesManifest = {
18561861 version : 1 ,
18571862 config : {
1858- ...runtimeConfig ,
1859-
1863+ ...runtimeConfigWithoutFilePath ,
18601864 ...( ciEnvironment . hasNextSupport
18611865 ? {
18621866 compress : false ,
Original file line number Diff line number Diff line change @@ -1683,6 +1683,11 @@ export interface NextConfigRuntime {
16831683export function getNextConfigRuntime (
16841684 config : NextConfigComplete | NextConfigRuntime
16851685) : NextConfigRuntime {
1686+ // This config filter is a breaking change, so only do it if experimental.runtimeServerDeploymentId is enabled
1687+ if ( ! config . experimental . runtimeServerDeploymentId ) {
1688+ return config
1689+ }
1690+
16861691 let ex = config . experimental
16871692
16881693 type Requiredish < T > = {
You can’t perform that action at this time.
0 commit comments