Skip to content

Commit

Permalink
Allow import of node:* and cloudflare:* in worker custom entrypoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse authored Dec 8, 2024
1 parent 753291f commit edd4fea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-chairs-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudflare/next-on-pages': patch
---

Allow import of `node:*` and `cloudflare:*` in worker custom entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export async function buildWorkerFile(
outfile: outputFile,
allowOverwrite: true,
bundle: true,
external: ['node:*', 'cloudflare:*'],
plugins: [
{
name: 'custom-entrypoint-import-plugin',
Expand Down

0 comments on commit edd4fea

Please sign in to comment.