@harlan-zw/nuxt-cloudflare 0.0.12 → 0.0.13

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.
@@ -104,7 +104,7 @@ const doctor = defineCommand({
104
104
  const main = defineCommand({
105
105
  meta: {
106
106
  name: "nuxt-cloudflare",
107
- version: "0.0.12",
107
+ version: "0.0.13",
108
108
  description: "Cloudflare deployment defaults and diagnostics for Nuxt"
109
109
  },
110
110
  subCommands: { doctor }
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.5.0"
6
6
  },
7
- "version": "0.0.12",
7
+ "version": "0.0.13",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -10,9 +10,6 @@ import 'confbox';
10
10
  const NON_HTML_ROUTE_PREFIXES = [
11
11
  "/.well-known",
12
12
  "/api",
13
- "/_ipx",
14
- "/_nuxt",
15
- "/_og",
16
13
  "/assets",
17
14
  "/fonts",
18
15
  "/images",
@@ -47,7 +44,7 @@ function hasHtmlContentType(headers) {
47
44
  return typeof contentType === "string" && HTML_CONTENT_TYPE_RE.test(contentType);
48
45
  }
49
46
  function isHtmlCapableRoute(route, value) {
50
- if (NON_HTML_EXTENSION_RE.test(route) || hasExplicitNonHtmlContentType(value))
47
+ if (route.startsWith("/_") || NON_HTML_EXTENSION_RE.test(route) || hasExplicitNonHtmlContentType(value))
51
48
  return false;
52
49
  return !NON_HTML_ROUTE_PREFIXES.some((prefix) => route === prefix || route.startsWith(`${prefix}/`));
53
50
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harlan-zw/nuxt-cloudflare",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "description": "Opinionated Cloudflare deployment defaults and diagnostics for Nuxt.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",