@edgeone/nuxt-pages 1.0.3 → 1.0.4
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/content/static.js +2 -2
- package/dist/build/plugin-context.js +2 -2
- package/dist/build/routes.js +2 -2
- package/dist/esm-chunks/{chunk-GX4Z7KQX.js → chunk-5VJRCUAW.js} +1 -3
- package/dist/esm-chunks/{chunk-MMMRMLH2.js → chunk-7JK67XZ2.js} +1 -2
- package/dist/esm-chunks/{chunk-6YERJDAJ.js → chunk-SS6G7FEH.js} +1 -1
- package/dist/esm-chunks/{chunk-SHMQI7KT.js → chunk-ZYJTEPF7.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/run/handlers/cache.cjs +1 -1
- package/dist/run/handlers/nuxt-server.js +0 -1
- package/dist/run/handlers/tags-handler.cjs +1 -1
- package/dist/run/handlers/use-cache-handler.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import {
|
|
8
8
|
addNitroBuildOutputConfig,
|
|
9
9
|
resetNitroConfig
|
|
10
|
-
} from "../../esm-chunks/chunk-
|
|
10
|
+
} from "../../esm-chunks/chunk-7JK67XZ2.js";
|
|
11
11
|
import "../../esm-chunks/chunk-V2LFVP3C.js";
|
|
12
|
-
import "../../esm-chunks/chunk-
|
|
12
|
+
import "../../esm-chunks/chunk-5VJRCUAW.js";
|
|
13
13
|
import "../../esm-chunks/chunk-6BT4RYQJ.js";
|
|
14
14
|
export {
|
|
15
15
|
addNitroBuildOutputConfig,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
EDGE_HANDLER_NAME,
|
|
9
9
|
PluginContext,
|
|
10
10
|
SERVER_HANDLER_NAME
|
|
11
|
-
} from "../esm-chunks/chunk-
|
|
12
|
-
import "../esm-chunks/chunk-
|
|
11
|
+
} from "../esm-chunks/chunk-ZYJTEPF7.js";
|
|
12
|
+
import "../esm-chunks/chunk-5VJRCUAW.js";
|
|
13
13
|
import "../esm-chunks/chunk-6BT4RYQJ.js";
|
|
14
14
|
export {
|
|
15
15
|
EDGE_HANDLER_NAME,
|
package/dist/build/routes.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
convertNuxtRoutePattern,
|
|
9
9
|
createNuxtApiRoutesMeta,
|
|
10
10
|
createNuxtPagesRouteMeta
|
|
11
|
-
} from "../esm-chunks/chunk-
|
|
12
|
-
import "../esm-chunks/chunk-
|
|
11
|
+
} from "../esm-chunks/chunk-SS6G7FEH.js";
|
|
12
|
+
import "../esm-chunks/chunk-5VJRCUAW.js";
|
|
13
13
|
import "../esm-chunks/chunk-6BT4RYQJ.js";
|
|
14
14
|
export {
|
|
15
15
|
convertNuxtRoutePattern,
|
|
@@ -14788,7 +14788,6 @@ function addCodeToGenerateEdgeoneWithAST(code, insertCode) {
|
|
|
14788
14788
|
oldOutputValue = null;
|
|
14789
14789
|
const existingConfigContent = code.slice(configStart + 1, configEnd - 1).trim();
|
|
14790
14790
|
const nitroConfig = ` nitro: {
|
|
14791
|
-
preset: 'node-server',
|
|
14792
14791
|
output: {
|
|
14793
14792
|
dir: '.edgeone',
|
|
14794
14793
|
publicDir: '.edgeone/assets',
|
|
@@ -14833,7 +14832,6 @@ ${nitroConfig}
|
|
|
14833
14832
|
publicDir: '.edgeone/assets',
|
|
14834
14833
|
serverDir: '.edgeone/server-handler',
|
|
14835
14834
|
}`;
|
|
14836
|
-
const presetConfigStr = ` preset: 'node-server'`;
|
|
14837
14835
|
let newNitroContent;
|
|
14838
14836
|
const properties = [];
|
|
14839
14837
|
for (const nitroProp of nitroProperty.value.properties) {
|
|
@@ -14841,7 +14839,7 @@ ${nitroConfig}
|
|
|
14841
14839
|
if (nitroProp.key.name === "output") {
|
|
14842
14840
|
properties.push(outputConfigStr);
|
|
14843
14841
|
} else if (nitroProp.key.name === "preset") {
|
|
14844
|
-
|
|
14842
|
+
continue;
|
|
14845
14843
|
} else {
|
|
14846
14844
|
const propStart = nitroProp.start - nitroStart;
|
|
14847
14845
|
const propEnd = nitroProp.end - nitroStart;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
addCodeToGenerateEdgeoneWithAST,
|
|
13
13
|
resetNitroConfigWithAST
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5VJRCUAW.js";
|
|
15
15
|
|
|
16
16
|
// src/build/content/static.ts
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
@@ -32,7 +32,6 @@ var addNitroBuildOutputConfig = async (ctx) => {
|
|
|
32
32
|
const defaultNuxtConfig = `export default defineNuxtConfig({
|
|
33
33
|
srcDir: 'app',
|
|
34
34
|
nitro: {
|
|
35
|
-
preset: 'node-server',
|
|
36
35
|
output: {
|
|
37
36
|
dir: '.edgeone',
|
|
38
37
|
publicDir: '.edgeone/assets',
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import {
|
|
8
8
|
addNitroBuildOutputConfig,
|
|
9
9
|
resetNitroConfig
|
|
10
|
-
} from "./esm-chunks/chunk-
|
|
10
|
+
} from "./esm-chunks/chunk-7JK67XZ2.js";
|
|
11
11
|
import {
|
|
12
12
|
createServerHandler,
|
|
13
13
|
patchNitroHandler
|
|
@@ -16,12 +16,12 @@ import "./esm-chunks/chunk-NJ4SUJNF.js";
|
|
|
16
16
|
import "./esm-chunks/chunk-V2LFVP3C.js";
|
|
17
17
|
import {
|
|
18
18
|
PluginContext
|
|
19
|
-
} from "./esm-chunks/chunk-
|
|
19
|
+
} from "./esm-chunks/chunk-ZYJTEPF7.js";
|
|
20
20
|
import {
|
|
21
21
|
createNuxtApiRoutesMeta,
|
|
22
22
|
createNuxtPagesRouteMeta
|
|
23
|
-
} from "./esm-chunks/chunk-
|
|
24
|
-
import "./esm-chunks/chunk-
|
|
23
|
+
} from "./esm-chunks/chunk-SS6G7FEH.js";
|
|
24
|
+
import "./esm-chunks/chunk-5VJRCUAW.js";
|
|
25
25
|
import "./esm-chunks/chunk-6BT4RYQJ.js";
|
|
26
26
|
|
|
27
27
|
// src/index.ts
|
|
@@ -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.4";
|
|
203
203
|
|
|
204
204
|
// src/run/handlers/tags-handler.cts
|
|
205
205
|
var purgeCacheUserAgent = `${name}@${version}`;
|
|
@@ -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.4";
|
|
32
32
|
|
|
33
33
|
// src/run/handlers/request-context.cts
|
|
34
34
|
var import_node_async_hooks = require("node:async_hooks");
|
package/dist/utils.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getRouteRulesWithAST,
|
|
13
13
|
getRoutesArrayWithAST,
|
|
14
14
|
resetNitroConfigWithAST
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-5VJRCUAW.js";
|
|
16
16
|
import "./esm-chunks/chunk-6BT4RYQJ.js";
|
|
17
17
|
export {
|
|
18
18
|
addCodeToGenerateEdgeoneWithAST,
|