fix: remove OpenNext dev hook from next.config (spawns workerd in build)
initOpenNextCloudflareForDev() runs when next.config.js loads → spawns workerd binary (missing in Docker/node:20-alpine) → build crashes with ENOENT. The hook is only for opennextjs-cloudflare preview (dev); production build/deploy doesn't need it.
This commit is contained in:
1 parent
a53304cefa
commit
d304e7e863
1 file changed
-2
@@ -13,5 +13,3 @@ const nextConfig = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
module.exports = nextConfig;
|
||||||
|
|
||||||
import('@opennextjs/cloudflare').then(m => m.initOpenNextCloudflareForDev());
|
|
||||||
Reference in new issue
Block a user