Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

config.domain Vs. config.app.domain #1506

@19r3ka

Description

@19r3ka

Hi all,

Going through the code, these lines kinda bugged me:

var validateDomainIsSet = function (config) { if (!config.app.domain) { console.log(chalk.red('+ Important warning: config.domain is empty. It should be set to the fully qualified domain of the app.')); } };

is domain a key on the nested app object? Because judging by the following important warning, it is a key on the main config object. Even in config/env/default.js, it is set on the top-level object:

app: { title: 'MEAN.JS', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'mongodb, express, angularjs, node.js, mongoose, passport', googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID' }, port: process.env.PORT || 3000, host: process.env.HOST || '0.0.0.0', // DOMAIN config should be set to the fully qualified application accessible // URL. For example: https://www.myapp.com (including port if required). domain: process.env.DOMAIN,

I still think I'm the one mistaking here so please correct me, I am still learning the MEAN stack.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions