@nuxt/schema-nightly 5.0.0-29656394.48b15c25 → 5.0.0-29656656.bb4e7ef7

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/index.d.mts CHANGED
@@ -1589,6 +1589,16 @@ interface ConfigSchema {
1589
1589
  */
1590
1590
  test: boolean;
1591
1591
  /**
1592
+ * The active Nuxt environment name, used by `c12` to select configuration
1593
+ * overrides (e.g. `$env.staging`). Defaults to the explicit `envName` passed to
1594
+ * `loadNuxtConfig` (e.g. via `nuxt --envName`), falling back to `'development'`
1595
+ * in dev mode and `'production'` otherwise.
1596
+ *
1597
+ * Exposed to runtime app code as `import.meta.envName`.
1598
+ *
1599
+ */
1600
+ envName: string;
1601
+ /**
1592
1602
  * Set to `true` to enable debug mode.
1593
1603
  *
1594
1604
  * At the moment, it prints out hook names and timings on the server, and logs hook arguments as well in the browser.
@@ -2339,6 +2349,15 @@ interface ConfigSchema {
2339
2349
  */
2340
2350
  purgeCachedData: boolean;
2341
2351
  /**
2352
+ * When a `<NuxtLink>` is prefetched and the destination route has payload extraction enabled (the default for prerendered and cached routes), forward any `<link rel="preload">` hints that the destination set via `useHead` (or via modules like `@nuxt/image`'s `<NuxtImg preload>`) into the current document.
2353
+ *
2354
+ * The forwarded links are downgraded from `rel="preload"` to `rel="prefetch"` so they don't compete with the current page's critical resources. Only user-defined head tags are forwarded; build-time JS/CSS chunk preloads are not.
2355
+ *
2356
+ * @default false
2357
+ * @see [Issue #34953](https://github.com/nuxt/nuxt/issues/34953)
2358
+ */
2359
+ prefetchPreloadTags: boolean;
2360
+ /**
2342
2361
  * Whether to call and use the result from `getCachedData` on manual refresh for `useAsyncData` and `useFetch`.
2343
2362
  *
2344
2363
  * @default true
@@ -2463,6 +2482,7 @@ interface ConfigSchema {
2463
2482
  */
2464
2483
  _loadOptions: {
2465
2484
  dotenv?: boolean | DotenvOptions;
2485
+ envName?: string | false;
2466
2486
  };
2467
2487
  /**
2468
2488
  *
package/dist/index.mjs CHANGED
@@ -348,6 +348,10 @@ var common_default = defineResolvers({
348
348
  analyzeDir: { $resolve: async (val, get) => val && typeof val === "string" ? resolve(await get("rootDir"), val) : resolve(await get("buildDir"), "analyze") },
349
349
  dev: { $resolve: (val) => typeof val === "boolean" ? val : Boolean(isDevelopment) },
350
350
  test: { $resolve: (val) => typeof val === "boolean" ? val : Boolean(isTest) },
351
+ envName: { $resolve: async (val, get) => {
352
+ if (typeof val === "string") return val;
353
+ return await get("dev") ? "development" : "production";
354
+ } },
351
355
  debug: { $resolve: (val) => {
352
356
  val ??= isDebug;
353
357
  if (val === true) return {
@@ -667,6 +671,9 @@ var experimental_default = defineResolvers({
667
671
  purgeCachedData: { $resolve: (val) => {
668
672
  return typeof val === "boolean" ? val : true;
669
673
  } },
674
+ prefetchPreloadTags: { $resolve: (val) => {
675
+ return typeof val === "boolean" ? val : false;
676
+ } },
670
677
  granularCachedData: { $resolve: (val) => {
671
678
  return typeof val === "boolean" ? val : true;
672
679
  } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "5.0.0-29656394.48b15c25",
3
+ "version": "5.0.0-29656656.bb4e7ef7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",