* fix: Enforce single team when self hosting * test: positive case * refactor * fix: Visible error message on login screen for max teams scenario * Update Notices.js * lint
8 lines
247 B
JavaScript
8 lines
247 B
JavaScript
// @flow
|
|
|
|
export function getAllowedDomains(): string[] {
|
|
// GOOGLE_ALLOWED_DOMAINS included here for backwards compatability
|
|
const env = process.env.ALLOWED_DOMAINS || process.env.GOOGLE_ALLOWED_DOMAINS;
|
|
return env ? env.split(",") : [];
|
|
}
|