You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,16 @@ To build the web assembly module you will need `wasm-pack` and then run:
29
29
wasm-pack build
30
30
```
31
31
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
+
32
42
## License
33
43
34
44
This code is licensed under the MIT License - see the [LICENSE](./LICENSE.md) file for details.
0 commit comments