Commit 63bad550 authored by Will Binns-Smith's avatar Will Binns-Smith

Clarify Edge Runtime server HMR stub comment

Edge Runtime is server-side (for API routes and middleware) but doesn't
support full Node.js APIs, so server HMR is not supported. The stub
returns false to indicate updates are not applied.
parent ef7e0246
...@@ -23,7 +23,8 @@ function _eval(_: EcmascriptModuleEntry) { ...@@ -23,7 +23,8 @@ function _eval(_: EcmascriptModuleEntry) {
} }
function __turbopack_server_hmr_apply__(_update: any): boolean { function __turbopack_server_hmr_apply__(_update: any): boolean {
// Server-side HMR is not supported in edge runtime, but this is expected. // Server-side HMR is not supported in Edge Runtime (for API routes/middleware).
// Edge Runtime has limited Node.js APIs and doesn't support the full HMR implementation.
// Return false to indicate the update was not applied. // Return false to indicate the update was not applied.
return false return false
} }
......
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