Separate environment configs (#6597)
* Separate environment configs * wip * wip * test * plugins * test * test * .sequelizerc, unfortunately can't go through /utils/environment due to not supporting TS * docker-compose -> docker compose * fix: .local wipes .development * Add custom validation message for invalid SECRET_KEY (often confused)
This commit is contained in:
@@ -6,6 +6,7 @@ import find from "lodash/find";
|
||||
import sortBy from "lodash/sortBy";
|
||||
import env from "@server/env";
|
||||
import Team from "@server/models/Team";
|
||||
import environment from "@server/utils/environment";
|
||||
|
||||
export type AuthenticationProviderConfig = {
|
||||
id: string;
|
||||
@@ -49,7 +50,7 @@ export default class AuthenticationHelper {
|
||||
|
||||
// Test the all required env vars are set for the auth provider
|
||||
const enabled = (config.requiredEnvVars ?? []).every(
|
||||
(name: string) => !!env[name]
|
||||
(name: string) => !!environment[name]
|
||||
);
|
||||
|
||||
if (enabled) {
|
||||
|
||||
Reference in New Issue
Block a user