@dyrected/nuxt 2.5.56 → 2.5.59

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
3
  "configKey": "dyrected",
4
- "version": "2.5.56"
4
+ "version": "2.5.58"
5
5
  }
package/dist/module.mjs CHANGED
@@ -188,14 +188,14 @@ export default defineNitroPlugin(async (nitroApp) => {
188
188
  }
189
189
  nuxt.options.runtimeConfig.dyrected = runtimeConfig;
190
190
  const apiBase = options.apiBase || "/dyrected";
191
- let baseUrl = process.env.NUXT_PUBLIC_DYRECTED_URL || options.baseUrl || apiBase;
191
+ let baseUrl = process.env.NUXT_PUBLIC_DYRECTED_URL || process.env.DYRECTED_URL || options.baseUrl || apiBase;
192
192
  if (baseUrl.startsWith("http") && apiBase.startsWith("/") && !baseUrl.endsWith(apiBase)) {
193
193
  baseUrl = baseUrl.replace(/\/$/, "") + apiBase;
194
194
  }
195
195
  nuxt.options.runtimeConfig.public.dyrected = {
196
196
  baseUrl,
197
- apiKey: process.env.NUXT_PUBLIC_DYRECTED_API_KEY || options.apiKey || "local-dev",
198
- siteId: process.env.NUXT_PUBLIC_DYRECTED_SITE_ID || options.siteId || "default"
197
+ apiKey: process.env.NUXT_PUBLIC_DYRECTED_API_KEY || process.env.DYRECTED_API_KEY || options.apiKey || "local-dev",
198
+ siteId: process.env.NUXT_PUBLIC_DYRECTED_SITE_ID || process.env.DYRECTED_SITE_ID || options.siteId || "default"
199
199
  };
200
200
  if (nuxt.options.vite) {
201
201
  nuxt.options.vite.build = nuxt.options.vite.build || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.5.56",
3
+ "version": "2.5.59",
4
4
  "type": "module",
5
5
  "main": "./dist/module.mjs",
6
6
  "types": "./dist/module.d.ts",
@@ -19,10 +19,10 @@
19
19
  "h3": "^1.15.0",
20
20
  "react": "^18.0.0 || ^19.0.0",
21
21
  "react-dom": "^18.0.0 || ^19.0.0",
22
- "@dyrected/core": "2.5.56",
23
- "@dyrected/sdk": "2.5.56",
24
- "@dyrected/vue": "2.5.56",
25
- "@dyrected/admin": "2.5.56"
22
+ "@dyrected/core": "2.5.59",
23
+ "@dyrected/sdk": "2.5.59",
24
+ "@dyrected/admin": "2.5.59",
25
+ "@dyrected/vue": "2.5.59"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "nuxt": "^3.0.0",