Skip to content

Commit 42e2b5c

Browse files
authored
fix: nextjs handler not detected in worker (#509)
1 parent bdc95fb commit 42e2b5c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/little-seals-impress.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix: nextjs handler not detected in worker

packages/cloudflare/src/cli/build/bundle-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ globalThis.__BUILD_TIMESTAMP_MS__ = ${Date.now()};
194194
if (isMonorepo) {
195195
fs.writeFileSync(
196196
path.join(outputPath, "handler.mjs"),
197-
`export * from "./${normalizePath(packagePath)}/handler.mjs";`
197+
`export { handler } from "./${normalizePath(packagePath)}/handler.mjs";`
198198
);
199199
}
200200

0 commit comments

Comments
 (0)