Unverified Commit 38f4304c authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Only filter next config if experimental flag is enabled (#88733)

parent b46d599b
......@@ -1904,11 +1904,15 @@ export default async function build(
}
}
// getNextConfigRuntime only filters if experimental.runtimeServerDeploymentId is true,
// but we unconditionally want to remove configFile for this manifest
let runtimeConfigWithoutFilePath = { ...runtimeConfig }
delete (runtimeConfigWithoutFilePath as NextConfigComplete).configFile
const serverFilesManifest: RequiredServerFilesManifest = {
version: 1,
config: {
...runtimeConfig,
...runtimeConfigWithoutFilePath,
...(ciEnvironment.hasNextSupport
? {
compress: false,
......
......@@ -1705,6 +1705,11 @@ export interface NextConfigRuntime {
export function getNextConfigRuntime(
config: NextConfigComplete | NextConfigRuntime
): NextConfigRuntime {
// This config filter is a breaking change, so only do it if experimental.runtimeServerDeploymentId is enabled
if (!config.experimental.runtimeServerDeploymentId) {
return config
}
let ex = config.experimental
type Requiredish<T> = {
......
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