Skip to content

Commit

Permalink
marketing config fix (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming authored Oct 21, 2022
1 parent 14607c6 commit 3550810
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions marketing/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
// TODO: process.env files on the cluster are currently not working in this file. For now we are going
// to hardcode the env variables to production vars.
if (process.env.ENV === 'dev') {
FXA_SERVER = process.env.FXA_SERVER;
AUTH_SERVER = process.env.AUTH_SERVER;
HUB_ROOT_DOMAIN = process.env.HUB_ROOT_DOMAIN;
DASH_ROOT_DOMAIN = process.env.DASH_ROOT_DOMAIN;
FXA_PAYMENT_URL = process.env.FXA_PAYMENT_URL;
PRODUCT_ID = process.env.PRODUCT_ID;
PLAN_ID_EA = process.env.PLAN_ID_EA;
} else {
FXA_SERVER = 'accounts.stage.mozaws.net';
AUTH_SERVER = 'auth.dev.myhubs.net';
HUB_ROOT_DOMAIN = 'dev.myhubs.net';
DASH_ROOT_DOMAIN = 'dashboard.dev.myhubs.net';
FXA_PAYMENT_URL = 'https://payments-stage.fxa.nonprod.cloudops.mozgcp.net';
PRODUCT_ID = 'prod_KPReWHqwGqZBzc';
PLAN_ID_EA = 'price_1Jkcl3Kb9q6OnNsLFbECmMtd';
} else {
FXA_SERVER = 'accounts.firefox.com';
AUTH_SERVER = 'auth.myhubs.dev';
HUB_ROOT_DOMAIN = 'marketing.myhubs.dev'; // will be swithced to hubs.mozilla.com on release day
DASH_ROOT_DOMAIN = 'dashboard.hubs.mozilla.com';
FXA_PAYMENT_URL = 'https://payments-stage.fxa.nonprod.cloudops.mozgcp.net'; //this can't be right for prod
PRODUCT_ID = 'prod_KPReWHqwGqZBzc'; // same as ^
PLAN_ID_EA = 'price_1Jkcl3Kb9q6OnNsLFbECmMtd'; //same as ^^
}

const nextConfig = {
Expand All @@ -32,6 +32,9 @@ const nextConfig = {
PRODUCT_ID: PRODUCT_ID,
PLAN_ID_EA: PLAN_ID_EA,
},
env: {
ENV: process.env.ENV,
},
};

console.log('nextConfig: ', nextConfig);
Expand Down

0 comments on commit 3550810

Please sign in to comment.