Unverified Commit 8102bc56 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add canary warning for node middleware (#76292)

This matches our PPR warning for node middleware while we
experiment/validate it further.
parent fc14d78d
......@@ -647,5 +647,6 @@
"646": "No span found for compilation",
"647": "@rspack/core is not available. Please make sure `@next/plugin-rspack` is correctly installed.",
"648": "@rspack/plugin-react-refresh is not available. Please make sure `@next/plugin-rspack` is correctly installed.",
"649": "Cache handlers not initialized"
"649": "Cache handlers not initialized",
"650": "experimental.nodeMiddleware"
}
......@@ -255,6 +255,8 @@ function assignDefaults(
throw new CanaryOnlyError('experimental.dynamicIO')
} else if (result.experimental?.turbo?.unstablePersistentCaching) {
throw new CanaryOnlyError('experimental.turbo.unstablePersistentCaching')
} else if (result.experimental?.nodeMiddleware) {
throw new CanaryOnlyError('experimental.nodeMiddleware')
}
}
......
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