nuxt-site-config-kit 1.5.4 → 1.6.0

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.cjs CHANGED
@@ -68,8 +68,8 @@ async function initSiteConfig(nuxt = kit.tryUseNuxt()) {
68
68
  return stdEnv.env[`NUXT_PUBLIC_SITE_${key}`];
69
69
  }
70
70
  siteConfig.push({
71
- _priority: -1,
72
- _context: "runtimeConfig",
71
+ _priority: -2,
72
+ _context: "legacyRuntimeConfig",
73
73
  env: getRuntimeConfig("Env"),
74
74
  url: getRuntimeConfig("Url"),
75
75
  name: getRuntimeConfig("Name"),
@@ -80,8 +80,8 @@ async function initSiteConfig(nuxt = kit.tryUseNuxt()) {
80
80
  ...nuxt?.options.runtimeConfig.public.site || {}
81
81
  });
82
82
  siteConfig.push({
83
- _context: "env",
84
- _priority: 0,
83
+ _context: "buildEnv",
84
+ _priority: -1,
85
85
  env: getEnv("Env"),
86
86
  url: getEnv("Url"),
87
87
  name: getEnv("Name"),
@@ -90,14 +90,6 @@ async function initSiteConfig(nuxt = kit.tryUseNuxt()) {
90
90
  defaultLocale: getEnv("Language"),
91
91
  indexable: getEnv("Indexable")
92
92
  });
93
- const curStack = siteConfig.get();
94
- if (typeof curStack.indexable === "undefined") {
95
- siteConfig.push({
96
- _context: "computed-env",
97
- _priority: 0,
98
- indexable: curStack.env === "production"
99
- });
100
- }
101
93
  nuxt._siteConfig = siteConfig;
102
94
  return siteConfig;
103
95
  }
package/dist/index.mjs CHANGED
@@ -66,8 +66,8 @@ async function initSiteConfig(nuxt = tryUseNuxt()) {
66
66
  return env[`NUXT_PUBLIC_SITE_${key}`];
67
67
  }
68
68
  siteConfig.push({
69
- _priority: -1,
70
- _context: "runtimeConfig",
69
+ _priority: -2,
70
+ _context: "legacyRuntimeConfig",
71
71
  env: getRuntimeConfig("Env"),
72
72
  url: getRuntimeConfig("Url"),
73
73
  name: getRuntimeConfig("Name"),
@@ -78,8 +78,8 @@ async function initSiteConfig(nuxt = tryUseNuxt()) {
78
78
  ...nuxt?.options.runtimeConfig.public.site || {}
79
79
  });
80
80
  siteConfig.push({
81
- _context: "env",
82
- _priority: 0,
81
+ _context: "buildEnv",
82
+ _priority: -1,
83
83
  env: getEnv("Env"),
84
84
  url: getEnv("Url"),
85
85
  name: getEnv("Name"),
@@ -88,14 +88,6 @@ async function initSiteConfig(nuxt = tryUseNuxt()) {
88
88
  defaultLocale: getEnv("Language"),
89
89
  indexable: getEnv("Indexable")
90
90
  });
91
- const curStack = siteConfig.get();
92
- if (typeof curStack.indexable === "undefined") {
93
- siteConfig.push({
94
- _context: "computed-env",
95
- _priority: 0,
96
- indexable: curStack.env === "production"
97
- });
98
- }
99
91
  nuxt._siteConfig = siteConfig;
100
92
  return siteConfig;
101
93
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-site-config-kit",
3
3
  "type": "module",
4
- "version": "1.5.4",
4
+ "version": "1.6.0",
5
5
  "description": "Shared site configuration build-time utilities for Nuxt 3 modules.",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -27,12 +27,12 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@nuxt/kit": "^3.7.4",
31
- "@nuxt/schema": "^3.7.4",
30
+ "@nuxt/kit": "^3.8.1",
31
+ "@nuxt/schema": "^3.8.1",
32
32
  "pkg-types": "^1.0.3",
33
- "std-env": "^3.4.3",
34
- "ufo": "^1.3.1",
35
- "site-config-stack": "1.5.4"
33
+ "std-env": "^3.5.0",
34
+ "ufo": "^1.3.2",
35
+ "site-config-stack": "1.6.0"
36
36
  },
37
37
  "scripts": {
38
38
  "lint": "eslint . --fix",