Skip to content

Commit

Permalink
fix: cf workers exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Mar 18, 2024
1 parent a88faaf commit 3d9ea1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node/noop.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Export noop for other environments, like Cloudflare Workers

export function serveStatic() {
return () => {}
}
1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"./node": {
"types": "./_lib/node/index.d.ts",
"worker": "./_lib/node/noop.js",
"default": "./_lib/node/index.js"
},
"./vercel": {
Expand Down

0 comments on commit 3d9ea1e

Please sign in to comment.