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:
lezi-fun committed 2026-08-11 18:00:03 +08:00
1 parent a53304cefa
commit d304e7e863
1 file changed
-2
-2
View File
@@ -13,5 +13,3 @@ const nextConfig = {
};
module.exports = nextConfig;
import('@opennextjs/cloudflare').then(m => m.initOpenNextCloudflareForDev());