@vue-storefront/nuxt 9.1.0-next.0 → 9.1.0-next.1

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
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "configKey": "alokai",
6
6
  "name": "@vue-storefront/nuxt",
7
- "version": "9.1.0-next.0",
7
+ "version": "9.1.0-next.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -2,19 +2,15 @@ import { defineNuxtModule, createResolver, installModule, addTypeTemplate, addIm
2
2
  import { defu } from 'defu';
3
3
  import { genInlineTypeImport } from 'knitwork';
4
4
 
5
+ const RUNTIME_CONFIG = {
6
+ public: {}
7
+ };
5
8
  const module = defineNuxtModule({
6
9
  defaults: {
7
10
  logger: {
8
11
  includeStackTrace: false,
9
12
  verbosity: "debug"
10
13
  },
11
- /**
12
- * In the `middleware` object, both `apiUrl` and `ssrApiUrl` keys have to be
13
- * present to allow Nuxt replacing them with the actual values from the
14
- * .env file at runtime.
15
- *
16
- * https://nuxt.com/docs/guide/going-further/runtime-config
17
- */
18
14
  middleware: {
19
15
  apiUrl: "",
20
16
  cdnCacheBustingId: "no-cache-busting-id-set",
@@ -41,6 +37,16 @@ const module = defineNuxtModule({
41
37
  nuxt.options.runtimeConfig.public?.alokai,
42
38
  options
43
39
  );
40
+ Object.assign(
41
+ nuxt.options.appConfig,
42
+ defu(nuxt.options.appConfig, {
43
+ alokaiVersion: process.env.NUXT_PUBLIC_ALOKAI_VERSION
44
+ })
45
+ );
46
+ Object.assign(
47
+ nuxt.options.runtimeConfig,
48
+ defu(nuxt.options.runtimeConfig, RUNTIME_CONFIG)
49
+ );
44
50
  nuxt.options.app.head.meta = [
45
51
  ...nuxt.options.app.head.meta ?? [],
46
52
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-storefront/nuxt",
3
- "version": "9.1.0-next.0",
3
+ "version": "9.1.0-next.1",
4
4
  "description": "Alokai dedicated features for Nuxt",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,10 +33,12 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@alokai/connect": "^1.1.0-next.0",
36
- "@types/node": "^22.0.0",
37
36
  "@nuxt/devtools": "1.7.0",
38
37
  "@nuxt/module-builder": "1.0.1",
39
- "nuxt": "3.13.2"
38
+ "@types/node": "^22.0.0",
39
+ "eslint": "9.23.0",
40
+ "nuxt": "3.13.2",
41
+ "prettier": "3.3.2"
40
42
  },
41
43
  "peerDependencies": {
42
44
  "@alokai/connect": "^1.1.0-next.0"