@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.
@@ -7,9 +7,9 @@
7
7
  import {
8
8
  addNitroBuildOutputConfig,
9
9
  resetNitroConfig
10
- } from "../../esm-chunks/chunk-MMMRMLH2.js";
10
+ } from "../../esm-chunks/chunk-7JK67XZ2.js";
11
11
  import "../../esm-chunks/chunk-V2LFVP3C.js";
12
- import "../../esm-chunks/chunk-GX4Z7KQX.js";
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-SHMQI7KT.js";
12
- import "../esm-chunks/chunk-GX4Z7KQX.js";
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,
@@ -8,8 +8,8 @@ import {
8
8
  convertNuxtRoutePattern,
9
9
  createNuxtApiRoutesMeta,
10
10
  createNuxtPagesRouteMeta
11
- } from "../esm-chunks/chunk-6YERJDAJ.js";
12
- import "../esm-chunks/chunk-GX4Z7KQX.js";
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
- properties.push(presetConfigStr);
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-GX4Z7KQX.js";
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',
@@ -6,7 +6,7 @@
6
6
 
7
7
  import {
8
8
  getHandlersArrayWithAST
9
- } from "./chunk-GX4Z7KQX.js";
9
+ } from "./chunk-5VJRCUAW.js";
10
10
 
11
11
  // src/build/routes.ts
12
12
  import * as fs from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  getPrerenderRoutesWithAST,
10
10
  getRouteRulesWithAST,
11
11
  getRoutesArrayWithAST
12
- } from "./chunk-GX4Z7KQX.js";
12
+ } from "./chunk-5VJRCUAW.js";
13
13
 
14
14
  // src/build/plugin-context.ts
15
15
  import { existsSync, readFileSync } from "node:fs";
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  import {
8
8
  addNitroBuildOutputConfig,
9
9
  resetNitroConfig
10
- } from "./esm-chunks/chunk-MMMRMLH2.js";
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-SHMQI7KT.js";
19
+ } from "./esm-chunks/chunk-ZYJTEPF7.js";
20
20
  import {
21
21
  createNuxtApiRoutesMeta,
22
22
  createNuxtPagesRouteMeta
23
- } from "./esm-chunks/chunk-6YERJDAJ.js";
24
- import "./esm-chunks/chunk-GX4Z7KQX.js";
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.2";
202
+ var version = "1.0.4";
203
203
 
204
204
  // src/run/handlers/tags-handler.cts
205
205
  var purgeCacheUserAgent = `${name}@${version}`;
@@ -11,7 +11,6 @@ var defaultEdgeOneNuxtConfig = {
11
11
  // Nuxt specific configuration
12
12
  ssr: true,
13
13
  nitro: {
14
- preset: "node-server",
15
14
  storage: {}
16
15
  },
17
16
  experimental: {
@@ -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.2";
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");
@@ -20,7 +20,7 @@ import { Buffer } from "node:buffer";
20
20
 
21
21
  // package.json
22
22
  var name = "@edgeone/nuxt-pages";
23
- var version = "1.0.2";
23
+ var version = "1.0.4";
24
24
 
25
25
  // src/run/handlers/tags-handler.cts
26
26
  var purgeCacheUserAgent = `${name}@${version}`;
package/dist/utils.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  getRouteRulesWithAST,
13
13
  getRoutesArrayWithAST,
14
14
  resetNitroConfigWithAST
15
- } from "./esm-chunks/chunk-GX4Z7KQX.js";
15
+ } from "./esm-chunks/chunk-5VJRCUAW.js";
16
16
  import "./esm-chunks/chunk-6BT4RYQJ.js";
17
17
  export {
18
18
  addCodeToGenerateEdgeoneWithAST,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeone/nuxt-pages",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "test": "ts-node src/test.ts",