Add support for SUBDOMAINS_ENABLED=false

This commit is contained in:
Tom Moor
2018-11-11 22:06:50 -08:00
parent 61138ff4fa
commit b3a8d34af3
6 changed files with 46 additions and 22 deletions

View File

@ -45,7 +45,7 @@ const Team = sequelize.define(
{
getterMethods: {
url() {
if (!this.subdomain || !process.env.SUBDOMAINS_ENABLED) {
if (!this.subdomain || process.env.SUBDOMAINS_ENABLED !== 'true') {
return process.env.URL;
}