Skip to content

Commit

Permalink
Add docs about triggering the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Feb 17, 2023
1 parent 2853511 commit f87246f
Show file tree
Hide file tree
Showing 6 changed files with 1,996 additions and 79 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "standard",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ send logs from cloudflare to axiom
const axiomDataset = "my-dataset" // Your Axiom dataset
const axiomToken = "xapt-xxx" // Your Axiom API token
```

Add triggers for the worker, e.g a route trigger:

- Navigate to the worker and click on the `Triggers` tab.

- Scroll down to Routes and click `Add Route`.

- Enter a route, e.g `*.example.com` and choose the related zone,
then click `Save`.

When requests are made to the routes you setup, the worker will be triggered and you will see the logs delivered to your Axiom dataset.
Loading

0 comments on commit f87246f

Please sign in to comment.