-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LOC-1015 Strapi plugin does not work on certain versions (#48)
* ♻️ refactor: remove extra imports ♻️ refactor: duplicate config for admin panel 🐛 fix: updated STRAPI_ADMIN env variable value * 📝 docs: update README of new installation instructions * ✨ feat: add STRAPI_ADMIN_LOCALAZY_ENV env variable during the installation --------- Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
- Loading branch information
1 parent
af4f3e8
commit 5f55f1b
Showing
27 changed files
with
134 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
LOCALAZY_OAUTH_URL: "https://testing.localazy.com/oauth/authorize", | ||
LOCALAZY_OAUTH_APP_CLIENT_ID: "18503917571895066466", | ||
LOCALAZY_PLUGIN_CONNECTOR_API_URL: "https://testing.localazy.com/plugin-connector", | ||
LOCALAZY_PUBLIC_API_URL: "https://testing.localazy.com/pubapi", | ||
LOCALAZY_PLUGIN_ID: "1", | ||
LOCALAZY_DEFAULT_FILE_NAME: "strapi.json", | ||
LOCALAZY_DEFAULT_FILE_PATH: "", | ||
LOCALAZY_DEFAULT_FILE_EXTENSION: "json", | ||
LOCALAZY_DEFAULT_LOCALE: "en", | ||
LOCALAZY_API_USER_JWT_COOKIE_NAME: "LOCALAZY-API-USER-JWT", | ||
LOCALAZY_API_USER_COOKIE_EXPIRATION: 7, | ||
LOCALAZY_PUBLIC_API_LIFTED_LIMITS: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
LOCALAZY_OAUTH_URL: "", | ||
LOCALAZY_OAUTH_APP_CLIENT_ID: "", | ||
LOCALAZY_PLUGIN_CONNECTOR_API_URL: "", | ||
LOCALAZY_PUBLIC_API_URL: "", | ||
LOCALAZY_PLUGIN_ID: "", | ||
LOCALAZY_DEFAULT_FILE_NAME: "", | ||
LOCALAZY_DEFAULT_FILE_PATH: "", | ||
LOCALAZY_DEFAULT_FILE_EXTENSION: "", | ||
LOCALAZY_DEFAULT_LOCALE: "", | ||
LOCALAZY_API_USER_JWT_COOKIE_NAME: "", | ||
LOCALAZY_API_USER_COOKIE_EXPIRATION: -1, | ||
LOCALAZY_PUBLIC_API_LIFTED_LIMITS: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import production from "./production/index"; | ||
import local from "./local/index"; | ||
import development from "./development/index"; | ||
|
||
|
||
// depending on the STRAPI_ADMIN_LOCALAZY_ENV, use the correct config | ||
let config = production; | ||
|
||
if (process.env.STRAPI_ADMIN_LOCALAZY_ENV === "local") { | ||
config = local; | ||
} | ||
|
||
if (process.env.STRAPI_ADMIN_LOCALAZY_ENV === "development") { | ||
config = development; | ||
} | ||
|
||
console.log(config); | ||
|
||
export default { | ||
...config, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
LOCALAZY_OAUTH_URL: "https://testing.localazy.com/oauth/authorize", | ||
LOCALAZY_OAUTH_APP_CLIENT_ID: "18503917571895066465", | ||
LOCALAZY_PLUGIN_CONNECTOR_API_URL: "http://localhost:3000", | ||
LOCALAZY_PUBLIC_API_URL: "https://testing.localazy.com/pubapi", | ||
LOCALAZY_PLUGIN_ID: "1", | ||
LOCALAZY_DEFAULT_FILE_NAME: "strapi.json", | ||
LOCALAZY_DEFAULT_FILE_PATH: "", | ||
LOCALAZY_DEFAULT_FILE_EXTENSION: "json", | ||
LOCALAZY_DEFAULT_LOCALE: "en", | ||
LOCALAZY_API_USER_JWT_COOKIE_NAME: "LOCALAZY-API-USER-JWT", | ||
LOCALAZY_API_USER_COOKIE_EXPIRATION: 7, | ||
LOCALAZY_PUBLIC_API_LIFTED_LIMITS: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default { | ||
LOCALAZY_OAUTH_URL: "https://localazy.com/oauth/authorize", | ||
LOCALAZY_OAUTH_APP_CLIENT_ID: "18395772851999073783", | ||
LOCALAZY_PLUGIN_CONNECTOR_API_URL: | ||
"https://plugins.localazy.com/generic-connector", | ||
LOCALAZY_PUBLIC_API_URL: "https://api.localazy.com", | ||
LOCALAZY_PLUGIN_ID: "1", | ||
LOCALAZY_DEFAULT_FILE_NAME: "strapi.json", | ||
LOCALAZY_DEFAULT_FILE_PATH: "", | ||
LOCALAZY_DEFAULT_FILE_EXTENSION: "json", | ||
LOCALAZY_DEFAULT_LOCALE: "en", | ||
LOCALAZY_API_USER_JWT_COOKIE_NAME: "LOCALAZY-API-USER-JWT", | ||
LOCALAZY_API_USER_COOKIE_EXPIRATION: 7, | ||
LOCALAZY_PUBLIC_API_LIFTED_LIMITS: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters