@yassidev/nuxt-directus 0.0.13 → 0.0.14

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,7 +1,7 @@
1
1
  {
2
2
  "name": "directus",
3
3
  "configKey": "directus",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1810,7 +1810,7 @@ function normalizeConfig(options) {
1810
1810
  composables: options.composables === false ? { enabled: false } : options.composables
1811
1811
  }, {
1812
1812
  url: process.env.DIRECTUS_URL ?? "http://localhost:8055",
1813
- accessToken: process.env.DIRECTUS_ACCESS_TOKEN ?? "",
1813
+ accessToken: process.env.DIRECTUS_ACCESS_TOKEN || process.env.DIRECTUS_ADMIN_TOKEN || "",
1814
1814
  i18n: { enabled: hasNuxtModule("@nuxtjs/i18n"), sync: true, prefix: void 0 },
1815
1815
  types: { enabled: true },
1816
1816
  proxy: { enabled: true, path: "/api", options: {} },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yassidev/nuxt-directus",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "A Nuxt module for better integration with Directus CMS.",
5
5
  "repository": "yassilah/nuxt-directus",
6
6
  "license": "MIT",