Skip to content

Commit

Permalink
fix: make sure local env exists
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Jul 25, 2020
1 parent 8b82150 commit 89160b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const { parsed: localEnv } = require("dotenv").config();

module.exports = {
publicRuntimeConfig: {
CONTACT_EMAIL: localEnv.CONTACT_EMAIL,
SITE_NAME: localEnv.SITE_NAME,
DEFAULT_DOMAIN: localEnv.DEFAULT_DOMAIN,
RECAPTCHA_SITE_KEY: localEnv.RECAPTCHA_SITE_KEY,
GOOGLE_ANALYTICS: localEnv.GOOGLE_ANALYTICS,
REPORT_EMAIL: localEnv.REPORT_EMAIL
CONTACT_EMAIL: localEnv && localEnv.CONTACT_EMAIL,
SITE_NAME: localEnv && localEnv.SITE_NAME,
DEFAULT_DOMAIN: localEnv && localEnv.DEFAULT_DOMAIN,
RECAPTCHA_SITE_KEY: localEnv && localEnv.RECAPTCHA_SITE_KEY,
GOOGLE_ANALYTICS: localEnv && localEnv.GOOGLE_ANALYTICS,
REPORT_EMAIL: localEnv && localEnv.REPORT_EMAIL
}
};

0 comments on commit 89160b9

Please sign in to comment.