Skip to content

Conversation

muffinresearch
Copy link
Contributor

This prevents npm run build and npm run start from running without setting the name of the app via NODE_APP_INSTANCE.

Building all the apps is allowed with a special env var, this is because server tests still currently need to build all apps.

const appName = config.get('appName');

// Bail if appName isn't set unless explicitly enabled.
if (!appName && parseInt(process.env.ADDONS_FRONTEND_BUILD_ALL, 10) !== 1) {
Copy link
Contributor

@mstriemer mstriemer Jul 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think process.env.ADDONS_FRONTEND_BUILD_ALL !== '1' would be clearer. Is there a reason you need to convert to int?

@mstriemer
Copy link
Contributor

r+wc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants