@localazy/strapi-plugin 0.1.12-rc.3 → 0.1.12-rc.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.
@@ -7,11 +7,11 @@ import { auth } from "@strapi/helper-plugin";
7
7
  import pluginId from "../pluginId";
8
8
 
9
9
  console.log('process.env', process.env);
10
- const BASE_PLUGIN_PATH = `${process.env.STRAPI_ADMIN_LOCALAZY_PLUGIN_BACKEND_PREFIX}/${pluginId}`;
10
+ const BASE_PLUGIN_PATH = `/${pluginId}`;
11
11
 
12
12
  const createAxiosInstance = (baseUrl = null) => {
13
13
  if (baseUrl === null) {
14
- baseUrl = `${BASE_PLUGIN_PATH}`;
14
+ baseUrl = `${process.env.STRAPI_ADMIN_BACKEND_URL}${BASE_PLUGIN_PATH}`;
15
15
  }
16
16
 
17
17
  const instance = axios.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "0.1.12-rc.3",
3
+ "version": "0.1.12-rc.5",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "strapi": {
6
6
  "name": "localazy",