@nuxt/nitro-server-nightly 5.0.0-29558426.6a51f144 → 5.0.0-29558704.e2fc73c4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +11 -3
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ import { resolveModulePath } from "exsolve";
20
20
  import { runtimeDependencies } from "nitro/meta";
21
21
  import { resolveModuleExportNames } from "mlly";
22
22
  //#region package.json
23
- var version = "5.0.0-29558426.6a51f144";
23
+ var version = "5.0.0-29558704.e2fc73c4";
24
24
  //#endregion
25
25
  //#region src/utils.ts
26
26
  function toArray(value) {
@@ -665,6 +665,15 @@ async function bundle(nuxt) {
665
665
  base: nitroConfig.serverDir,
666
666
  watchOptions: { ignored: [isIgnored] }
667
667
  };
668
+ const cacheDriverPath = join(distDir, "runtime/utils/cache-driver.js");
669
+ const cacheDriverOption = isWindows ? pathToFileURL(cacheDriverPath).href : cacheDriverPath;
670
+ if (nuxt.options.dev) {
671
+ const payloadCacheDir = resolve(nuxt.options.buildDir, "cache/nuxt/payload");
672
+ nitroConfig.devStorage["cache:nuxt:payload"] ||= {
673
+ driver: cacheDriverOption,
674
+ base: payloadCacheDir
675
+ };
676
+ }
668
677
  nuxt.options.typescript.hoist.push("nitro", "nitro/app", "nitro/builder", "nitro/cache", "nitro/config", "nitro/context", "nitro/database", "nitro/h3", "nitro/meta", "nitro/runtime-config", "nitro/storage", "nitro/task", "nitro/types", "nitropack/types", "nitropack/runtime", "nitropack", "srvx", "defu", "h3", "consola", "ofetch", "crossws");
669
678
  await nuxt.callHook("nitro:config", nitroConfig);
670
679
  if (nitroConfig.static && nuxt.options.dev) {
@@ -714,13 +723,12 @@ async function bundle(nuxt) {
714
723
  if (resolve(nuxt.options.srcDir, relativePath) === spaLoadingTemplateFilePath) await nitro.hooks.callHook("rollup:reload");
715
724
  });
716
725
  const cacheDir = resolve(nuxt.options.buildDir, "cache/nitro/prerender");
717
- const cacheDriverPath = join(distDir, "runtime/utils/cache-driver.js");
718
726
  await promises.rm(cacheDir, {
719
727
  recursive: true,
720
728
  force: true
721
729
  }).catch(() => {});
722
730
  nitro.options._config.storage = defu(nitro.options._config.storage, { "internal:nuxt:prerender": {
723
- driver: isWindows ? pathToFileURL(cacheDriverPath).href : cacheDriverPath,
731
+ driver: cacheDriverOption,
724
732
  base: cacheDir
725
733
  } });
726
734
  nuxt._nitro = nitro;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "5.0.0-29558426.6a51f144",
3
+ "version": "5.0.0-29558704.e2fc73c4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@babel/plugin-syntax-typescript": "^7.28.6",
30
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29558426.6a51f144",
30
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29558704.e2fc73c4",
31
31
  "@unhead/vue": "^2.1.12",
32
32
  "@vue/shared": "^3.5.30",
33
33
  "consola": "^3.4.2",
@@ -59,7 +59,7 @@
59
59
  "peerDependencies": {
60
60
  "@babel/plugin-proposal-decorators": "^7.25.0",
61
61
  "@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
62
- "nuxt": "npm:nuxt-nightly@5.0.0-29558426.6a51f144"
62
+ "nuxt": "npm:nuxt-nightly@5.0.0-29558704.e2fc73c4"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@babel/plugin-proposal-decorators": {
@@ -71,10 +71,10 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@babel/plugin-proposal-decorators": "7.29.0",
74
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29558426.6a51f144",
74
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29558704.e2fc73c4",
75
75
  "@rollup/plugin-babel": "7.0.0",
76
76
  "hookable": "6.0.1",
77
- "nuxt": "npm:nuxt-nightly@5.0.0-29558426.6a51f144",
77
+ "nuxt": "npm:nuxt-nightly@5.0.0-29558704.e2fc73c4",
78
78
  "obuild": "0.4.32",
79
79
  "vitest": "4.0.18"
80
80
  },