@astrojs/cloudflare 13.0.0-alpha.4 → 13.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,7 @@ function serverStart({
83
83
  host,
84
84
  base
85
85
  }) {
86
- const version = "13.0.0-alpha.4";
86
+ const version = "13.0.0-beta.0";
87
87
  const localPrefix = `${colors.dim("\u2503")} Local `;
88
88
  const networkPrefix = `${colors.dim("\u2503")} Network `;
89
89
  const emptyPrefix = " ".repeat(11);
@@ -16,7 +16,17 @@ async function handle(request, env, context) {
16
16
  if (app.manifest.assets.has(pathname)) {
17
17
  return env.ASSETS.fetch(request.url.replace(/\.html$/, ""));
18
18
  }
19
- const routeData = app.match(request);
19
+ let routeData = void 0;
20
+ if (app.isDev()) {
21
+ const result = await app.devMatch(
22
+ app.getPathnameFromRequest(request)
23
+ );
24
+ if (result) {
25
+ routeData = result.routeData;
26
+ }
27
+ } else {
28
+ routeData = app.match(request);
29
+ }
20
30
  if (!routeData) {
21
31
  const asset = await env.ASSETS.fetch(
22
32
  request.url.replace(/index.html$/, "").replace(/\.html$/, "")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to Cloudflare Workers/Pages",
4
- "version": "13.0.0-alpha.4",
4
+ "version": "13.0.0-beta.0",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -40,19 +40,19 @@
40
40
  "piccolore": "^0.1.3",
41
41
  "tinyglobby": "^0.2.15",
42
42
  "vite": "^7.1.12",
43
- "wrangler": "4.53.0",
44
- "@astrojs/internal-helpers": "0.7.5",
45
- "@astrojs/underscore-redirects": "1.0.0"
43
+ "@astrojs/underscore-redirects": "1.0.0",
44
+ "@astrojs/internal-helpers": "0.7.5"
46
45
  },
47
46
  "peerDependencies": {
48
- "astro": "^6.0.0-alpha.0"
47
+ "astro": "^6.0.0-alpha.0",
48
+ "wrangler": "^4.53.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "cheerio": "1.1.2",
52
- "devalue": "^5.5.0",
53
- "rollup": "^4.53.3",
54
- "astro-scripts": "0.0.14",
55
- "astro": "6.0.0-alpha.5"
52
+ "devalue": "^5.6.1",
53
+ "rollup": "^4.54.0",
54
+ "astro": "6.0.0-beta.0",
55
+ "astro-scripts": "0.0.14"
56
56
  },
57
57
  "publishConfig": {
58
58
  "provenance": true