@veritree/services 2.26.4 → 2.26.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/services",
3
- "version": "2.26.4",
3
+ "version": "2.26.5",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -105,13 +105,16 @@ function getConfig(method, data, as) {
105
105
 
106
106
  export default class Api {
107
107
  constructor(resource) {
108
- const nuxtConfig = getNuxtRuntimeConfig();
109
- const url =
110
- nuxtConfig?.public?.API_VERITREE_URL ||
111
- process?.env?.API_VERITREE_URL ||
112
- null;
108
+ // Nuxt 3
109
+ // const nuxtConfig = getNuxtRuntimeConfig();
110
+ // const url =
111
+ // nuxtConfig?.public?.API_VERITREE_URL ||
112
+ // process?.env?.API_VERITREE_URL ||
113
+ // null;
113
114
 
114
- this.baseUrl = url + "/api";
115
+ // this.baseUrl = url + "/api";
116
+
117
+ this.baseUrl = process.env ? `${process.env.API_VERITREE_URL}/api` : null;
115
118
  this.resource = resource ? resource : "";
116
119
  this.orgId = null;
117
120
  this.orgType = null;