@edgeone/nuxt-pages 1.0.11 → 1.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.
- package/dist/build/routes.js +1 -1
- package/dist/build/templates/nuxt-handler-monorepo.tmpl.js +7 -2
- package/dist/esm-chunks/{chunk-ABEHWNBD.js → chunk-Y4NVMSL3.js} +0 -22
- package/dist/index.js +5 -5
- package/dist/run/handlers/cache.cjs +1 -1
- package/dist/run/handlers/server.js +4 -4
- package/dist/run/handlers/tags-handler.cjs +1 -1
- package/dist/run/handlers/use-cache-handler.js +1 -1
- package/package.json +1 -1
package/dist/build/routes.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
convertNuxtRoutePattern,
|
|
9
9
|
createNuxtApiRoutesMeta,
|
|
10
10
|
createNuxtPagesRouteMeta
|
|
11
|
-
} from "../esm-chunks/chunk-
|
|
11
|
+
} from "../esm-chunks/chunk-Y4NVMSL3.js";
|
|
12
12
|
import "../esm-chunks/chunk-5VJRCUAW.js";
|
|
13
13
|
import "../esm-chunks/chunk-6BT4RYQJ.js";
|
|
14
14
|
export {
|
|
@@ -69,8 +69,13 @@ function handleStaticFile(url) {
|
|
|
69
69
|
// Check if segment ends with a known image extension
|
|
70
70
|
newUrl += '/' + segment;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
|
|
73
|
+
if(newUrl.startsWith('/http')) newUrl = newUrl.slice(1);
|
|
74
|
+
|
|
75
|
+
if(newUrl.includes('http:/') && !newUrl.includes('http://')) {
|
|
76
|
+
newUrl = newUrl.replace('http:/', 'http://');
|
|
77
|
+
} else if(newUrl.includes('https:/') && !newUrl.includes('https://')) {
|
|
78
|
+
newUrl = newUrl.replace('https:/', 'https://');
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
return {
|
|
@@ -186,9 +186,6 @@ var createNuxtApiRoutesMeta = async (ctx) => {
|
|
|
186
186
|
}
|
|
187
187
|
return route;
|
|
188
188
|
});
|
|
189
|
-
processedRoutes.push({
|
|
190
|
-
path: ".*-ssr-functions/:path*"
|
|
191
|
-
});
|
|
192
189
|
processedRoutes = processedRoutes.map((route) => {
|
|
193
190
|
if (route.hasOwnProperty("ssr")) {
|
|
194
191
|
Reflect.deleteProperty(route, "ssr");
|
|
@@ -196,25 +193,6 @@ var createNuxtApiRoutesMeta = async (ctx) => {
|
|
|
196
193
|
route.path = route.path.replace(/\(/g, "").replace(/\)/g, "");
|
|
197
194
|
return route;
|
|
198
195
|
});
|
|
199
|
-
let staticAllIndex = -1;
|
|
200
|
-
processedRoutes = processedRoutes.map((route, index) => {
|
|
201
|
-
if (route.path.startsWith("/:") && route.path.endsWith("*")) {
|
|
202
|
-
staticAllIndex = index;
|
|
203
|
-
if (route.hasOwnProperty("isStatic")) {
|
|
204
|
-
route.isStatic = true;
|
|
205
|
-
} else {
|
|
206
|
-
Reflect.defineProperty(route, "isStatic", {
|
|
207
|
-
value: true,
|
|
208
|
-
enumerable: true
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
return route;
|
|
212
|
-
}
|
|
213
|
-
return route;
|
|
214
|
-
});
|
|
215
|
-
if (staticAllIndex !== -1) {
|
|
216
|
-
[processedRoutes[staticAllIndex], processedRoutes[processedRoutes.length - 1]] = [processedRoutes[processedRoutes.length - 1], processedRoutes[staticAllIndex]];
|
|
217
|
-
}
|
|
218
196
|
const finalMetaData = {
|
|
219
197
|
frameworkRoutes: processedRoutes,
|
|
220
198
|
conf: {
|
package/dist/index.js
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
return createRequire(import.meta.url);
|
|
5
5
|
})();
|
|
6
6
|
|
|
7
|
+
import {
|
|
8
|
+
addNitroBuildOutputConfig,
|
|
9
|
+
resetNitroConfig
|
|
10
|
+
} from "./esm-chunks/chunk-7JK67XZ2.js";
|
|
7
11
|
import {
|
|
8
12
|
createServerHandler,
|
|
9
13
|
patchNitroHandler
|
|
10
14
|
} from "./esm-chunks/chunk-QG7JLDXY.js";
|
|
11
15
|
import "./esm-chunks/chunk-NJ4SUJNF.js";
|
|
12
|
-
import {
|
|
13
|
-
addNitroBuildOutputConfig,
|
|
14
|
-
resetNitroConfig
|
|
15
|
-
} from "./esm-chunks/chunk-7JK67XZ2.js";
|
|
16
16
|
import "./esm-chunks/chunk-V2LFVP3C.js";
|
|
17
17
|
import {
|
|
18
18
|
PluginContext
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createNuxtApiRoutesMeta,
|
|
22
22
|
createNuxtPagesRouteMeta
|
|
23
|
-
} from "./esm-chunks/chunk-
|
|
23
|
+
} from "./esm-chunks/chunk-Y4NVMSL3.js";
|
|
24
24
|
import "./esm-chunks/chunk-5VJRCUAW.js";
|
|
25
25
|
import "./esm-chunks/chunk-6BT4RYQJ.js";
|
|
26
26
|
|
|
@@ -199,7 +199,7 @@ var getMemoizedKeyValueStoreBackedByRegionalBlobStore = (...args) => {
|
|
|
199
199
|
|
|
200
200
|
// package.json
|
|
201
201
|
var name = "@edgeone/nuxt-pages";
|
|
202
|
-
var version = "1.0.
|
|
202
|
+
var version = "1.0.13";
|
|
203
203
|
|
|
204
204
|
// src/run/handlers/tags-handler.cts
|
|
205
205
|
var purgeCacheUserAgent = `${name}@${version}`;
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
return createRequire(import.meta.url);
|
|
5
5
|
})();
|
|
6
6
|
|
|
7
|
+
import {
|
|
8
|
+
setCacheControlHeaders,
|
|
9
|
+
setCacheStatusHeader
|
|
10
|
+
} from "../../esm-chunks/chunk-5YBUNNZ4.js";
|
|
7
11
|
import {
|
|
8
12
|
getTracer
|
|
9
13
|
} from "../../esm-chunks/chunk-UOPC2N5A.js";
|
|
@@ -18,10 +22,6 @@ import {
|
|
|
18
22
|
getRequestContext
|
|
19
23
|
} from "../../esm-chunks/chunk-KGYBHZC3.js";
|
|
20
24
|
import "../../esm-chunks/chunk-HBXUWFGE.js";
|
|
21
|
-
import {
|
|
22
|
-
setCacheControlHeaders,
|
|
23
|
-
setCacheStatusHeader
|
|
24
|
-
} from "../../esm-chunks/chunk-5YBUNNZ4.js";
|
|
25
25
|
import "../../esm-chunks/chunk-6BT4RYQJ.js";
|
|
26
26
|
|
|
27
27
|
// src/run/handlers/wait-until.cts
|
|
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(tags_handler_exports);
|
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
30
|
var name = "@edgeone/nuxt-pages";
|
|
31
|
-
var version = "1.0.
|
|
31
|
+
var version = "1.0.13";
|
|
32
32
|
|
|
33
33
|
// src/run/handlers/request-context.cts
|
|
34
34
|
var import_node_async_hooks = require("node:async_hooks");
|