Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit cb24b45

Browse files
authored
Merge pull request #90 from leader22/patch-1
docs: Update endpoint path in scheduled.md
2 parents 351f95a + 8ad509a commit cb24b45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/scheduled.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ const mf = new Miniflare({
2727
## HTTP Triggers
2828

2929
Because waiting for cron triggers is annoying, you can also make HTTP requests
30-
to `/.mf/scheduled` to trigger `scheduled` events, when using the CLI or
30+
to `/cdn-cgi/mf/scheduled` to trigger `scheduled` events, when using the CLI or
3131
starting an HTTP server with `createServer`:
3232

3333
```shell
34-
$ curl "http://localhost:8787/.mf/scheduled"
34+
$ curl "http://localhost:8787/cdn-cgi/mf/scheduled"
3535
```
3636

3737
To simulate different values of `scheduledTime` and `cron` in the dispatched
3838
event, use the `time` and `cron` query parameters:
3939

4040
```shell
41-
$ curl "http://localhost:8787/.mf/scheduled?time=1000"
42-
$ curl "http://localhost:8787/.mf/scheduled?cron=*+*+*+*+*"
41+
$ curl "http://localhost:8787/cdn-cgi/mf/scheduled?time=1000"
42+
$ curl "http://localhost:8787/cdn-cgi/mf/scheduled?cron=*+*+*+*+*"
4343
```
4444

4545
## Dispatching Events

0 commit comments

Comments
 (0)