@localazy/strapi-plugin 0.1.12-rc.5 → 0.1.12

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/README.md CHANGED
@@ -48,12 +48,6 @@ module.exports = {
48
48
 
49
49
  To run tests, run the `npm run test` command. To watch tests, run the `npm run test:watch` command.
50
50
 
51
- ### API Endpoints Prefix
52
- If your Strapi Instance is running in a subfolder (see the `url` parameter in [Strapi documentation](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/required/server.html#available-options)), the Localazy Plugin needs to be additionally configured to respect this.
53
-
54
- You can use the `.env ` variable `STRAPI_ADMIN_LOCALAZY_PLUGIN_BACKEND_PREFIX`. A value assigned to this variable will be used as the prefix.
55
-
56
-
57
51
  ## Additional Resources
58
52
  - Localazy Docs: [Introduction to Strapi](https://localazy.com/docs/strapi/strapi-plugin-introduction-installation)
59
53
  - Localazy Blog: [Articles about the Strapi plugin](https://localazy.com/tags/strapi)
@@ -6,16 +6,15 @@ import axios from "axios";
6
6
  import { auth } from "@strapi/helper-plugin";
7
7
  import pluginId from "../pluginId";
8
8
 
9
- console.log('process.env', process.env);
10
9
  const BASE_PLUGIN_PATH = `/${pluginId}`;
11
10
 
12
11
  const createAxiosInstance = (baseUrl = null) => {
13
12
  if (baseUrl === null) {
14
- baseUrl = `${process.env.STRAPI_ADMIN_BACKEND_URL}${BASE_PLUGIN_PATH}`;
13
+ baseUrl = `${BASE_PLUGIN_PATH}`;
15
14
  }
16
15
 
17
16
  const instance = axios.create({
18
- baseURL: baseUrl,
17
+ baseURL: `${process.env.STRAPI_ADMIN_BACKEND_URL}${baseUrl}`,
19
18
  });
20
19
 
21
20
  instance.interceptors.request.use(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "0.1.12-rc.5",
3
+ "version": "0.1.12",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "strapi": {
6
6
  "name": "localazy",