hoffnib especially gay
Find a file
2021-08-16 18:03:20 +02:00
.vscode added task shit 2021-08-14 14:52:02 +02:00
dist edited regex on router stuff 2021-08-16 18:03:20 +02:00
src fixed url gen on user-upped tracks 2021-08-02 20:27:42 +02:00
.gitignore
.prettierrc
Cargo.toml
index.js edited regex on router stuff 2021-08-16 18:03:20 +02:00
LICENSE
package-lock.json
package.json
README.md
router.js
webpack.config.js
wrangler.toml removed production env stuff, that wasn't even needed lol 2021-08-13 23:48:54 +02:00

Router

Selects the logic to respond to requests based on the request method and URL. Can be used with REST APIs or apps that require basic routing logic.

index.js is the content of the Workers script.

Wrangler

You can use wrangler to generate a new Cloudflare Workers project based on this template by running the following command from your terminal:

wrangler generate myapp https://github.com/cloudflare/worker-template-router

Before publishing your code you need to edit wrangler.toml file and add your Cloudflare account_id - more information about publishing your code can be found in the documentation.

Once you are ready, you can publish your code by running the following command:

wrangler publish

Serverless

To deploy using serverless add a serverless.yml file.