Skip to content

Commit 6ec3783

Browse files
committed
Add instructions to publish cloudflare worker from this repo
1 parent 154f774 commit 6ec3783

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ To build the web assembly module you will need `wasm-pack` and then run:
2929
wasm-pack build
3030
```
3131

32+
### Pushing to cloudflare
33+
34+
You can directly push this code to a cloudflare worker, but you still need a redirection io account to do so:
35+
36+
1. You need to have wrangler installed: `cargo install wrangler`
37+
2. Login or configure your api token for cloudflare `wrangler login` or `wrangler config`
38+
3. Copy file `wrangler.toml.dist` to `wrangler.toml` and replace needed value
39+
4. Push your redirection io token as a secret value `wrangler secret put REDIRECTIONIO_TOKEN` and enter you redirection io project key when asked (available in your the instance panel of your project)
40+
5. Publish your worker: `wrangler publish`
41+
3242
## License
3343

3444
This code is licensed under the MIT License - see the [LICENSE](./LICENSE.md) file for details.

0 commit comments

Comments
 (0)