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

Commit 27cf362

Browse files
committed
Temporarily switch to pages subdomain
...whilst DNS propagates
1 parent 1c76db6 commit 27cf362

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Fun, full-featured, fully-local simulator for developing and testing Cloudflare
44
Workers
55

6-
**See <https://miniflare.dev> for many more details.**
6+
**See <https://miniflare.pages.dev> for many more details.**
77

88
## Features
99

docs/cache.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Access to the default cache is enabled by default:
66

77
```js
88
addEventListener("fetch", (e) => {
9-
e.respondWith(caches.default.match("http://miniflare.dev"));
9+
e.respondWith(caches.default.match("http://miniflare.pages.dev"));
1010
});
1111
```
1212

@@ -50,11 +50,11 @@ const mf = new Miniflare({
5050
const url = new URL(request.url);
5151
const cache = caches.default;
5252
if(url.pathname === "/put") {
53-
await cache.put("https://miniflare.dev/", new Response("1", {
53+
await cache.put("https://miniflare.pages.dev/", new Response("1", {
5454
headers: { "Cache-Control": "max-age=3600" },
5555
}));
5656
}
57-
return cache.match("https://miniflare.dev/");
57+
return cache.match("https://miniflare.pages.dev/");
5858
}
5959
}
6060
`,
@@ -63,11 +63,11 @@ let res = await mf.dispatchFetch("http://localhost:8787/put");
6363
console.log(await res.text()); // 1
6464
6565
const cache = await mf.getCache();
66-
const cachedRes = await cache.match("https://miniflare.dev/");
66+
const cachedRes = await cache.match("https://miniflare.pages.dev/");
6767
console.log(await cachedRes.text()); // 1
6868
6969
await cache.put(
70-
"https://miniflare.dev",
70+
"https://miniflare.pages.dev",
7171
new Response("2", {
7272
headers: { "Cache-Control": "max-age=3600" },
7373
})

docs/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ type = "ESModule"
178178
globs = ["**/*.js"]
179179

180180
[miniflare]
181-
upstream = "https://miniflare.dev" ## --upstream
181+
upstream = "https://miniflare.pages.dev" ## --upstream
182182
kv_persist = true ## --kv-persist
183183
cache_persist = "./cache" ## --cache-persist
184184
durable_objects_persist = true ## --do-persist

docs/fetch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ has been called, the response will be fetched from the specified upstream
8181
instead:
8282

8383
```shell
84-
$ miniflare --upstream https://miniflare.dev # or -u
84+
$ miniflare --upstream https://miniflare.pages.dev # or -u
8585
```
8686

8787
```toml
8888
# wrangler.toml
8989
[miniflare]
90-
upstream = "https://miniflare.dev"
90+
upstream = "https://miniflare.pages.dev"
9191
```
9292

9393
```js
@@ -100,9 +100,9 @@ const mf = new Miniflare({
100100
throw new Error();
101101
});
102102
`,
103-
upstream: "https://miniflare.dev",
103+
upstream: "https://miniflare.pages.dev",
104104
});
105105
// MUST use same upstream URL when dispatching
106-
const res = await mf.dispatchFetch("https://miniflare.dev/fetch.html");
106+
const res = await mf.dispatchFetch("https://miniflare.pages.dev/fetch.html");
107107
console.log(await res.text()); // Source code of this page
108108
```

0 commit comments

Comments
 (0)