mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(core): add IGNORE_CONNECTOR_VERSION_CHECK (#3028)
This commit is contained in:
parent
fb5d5ed297
commit
d61105c131
2 changed files with 3 additions and 2 deletions
|
@ -85,6 +85,7 @@ const loadEnvValues = () => {
|
|||
developmentTenantId,
|
||||
trustProxyHeader: isTrue(getEnv('TRUST_PROXY_HEADER')),
|
||||
adminConsoleUrl: appendPath(endpoint, '/console'),
|
||||
ignoreConnectorVersionCheck: isTrue(getEnv('IGNORE_CONNECTOR_VERSION_CHECK')),
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ const checkConnectorKitVersion = (dependencies: unknown) => {
|
|||
|
||||
const message = `Connector requires ${connectorKit} to be ${value}, but the version here is ${currentVersion}.`;
|
||||
|
||||
if (EnvSet.values.isIntegrationTest) {
|
||||
console.warn(`[warn] ${message}\n\nThis will result an error in production.`);
|
||||
if (EnvSet.values.isIntegrationTest || EnvSet.values.ignoreConnectorVersionCheck) {
|
||||
console.warn(`[warn] ${message}\n\nThis is highly discouraged in production.`);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue