Skip to content

Commit

Permalink
CF Workers Playground now supports Node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Dec 30, 2024
1 parent 1c4bd50 commit 02bb437
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ which is necessary for continuous integration (CI).
### Deploy to Cloudflare

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/PublicAffairs/openai-gemini)
- Alternatively can be deployed manually pasting content of [`src/worker.mjs`](../resize-images/src/worker.mjs)
- Alternatively can be deployed manually pasting content of [`src/worker.mjs`](src/worker.mjs)
to https://workers.cloudflare.com/playground (see there `Deploy` button).
- Alternatively can be deployed with [cli](https://developers.cloudflare.com/workers/wrangler/):
`wrangler deploy`
Expand Down
1 change: 0 additions & 1 deletion src/worker.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Buffer } from "node:buffer";
// alt: import { base64url } from "rfc4648";

export default {
async fetch (request) {
Expand Down

0 comments on commit 02bb437

Please sign in to comment.