Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Cloudflare Workers instructions #17

Merged
merged 2 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ To start the local site use:
To deploy updated versions:
`npm run deploy`

# Using Cloudflare Workers

1. Run `npx wrangler dev <filepath>` in your terminal to start a development server
1. Open a browser tab at http://localhost:8080/ to see your worker in action
1. Run `npx wrangler publish <file-path> --name <worker-name>` to publish your worker

SerpentBytes marked this conversation as resolved.
Show resolved Hide resolved


Learn more at https://developers.cloudflare.com/workers/
9 changes: 0 additions & 9 deletions worker/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
* Welcome to Cloudflare Workers! This is your first worker.
*
* - Run `npx wrangler dev src/index.js` in your terminal to start a development server
* - Open a browser tab at http://localhost:8080/ to see your worker in action
* - Run `npx wrangler publish src/index.js --name my-worker` to publish your worker
*
* Learn more at https://developers.cloudflare.com/workers/
*/
import { onRequestPost } from "./functions/on-req-post";
import { StatusCodes } from "http-status-codes";

Expand Down