diff --git a/ghost/portal/.env.development.local.example b/ghost/portal/.env.development.local.example index 09883d6b86..72ad27e776 100644 --- a/ghost/portal/.env.development.local.example +++ b/ghost/portal/.env.development.local.example @@ -1,2 +1 @@ REACT_APP_ADMIN_URL=http://localhost:2368/ghost -REACT_APP_SITE_URL=http://localhost:2368 diff --git a/ghost/portal/src/index.js b/ghost/portal/src/index.js index 24d4863d6c..c0d3b9233f 100644 --- a/ghost/portal/src/index.js +++ b/ghost/portal/src/index.js @@ -16,17 +16,8 @@ window.GhostMembers = { initMembersJS: initMembersJS }; -// This will automatically load for local if an .env.local file is present +// This will automatically load for local if an .env.development.local file is present if (process.env.REACT_APP_ADMIN_URL) { - let site = { - adminUrl: process.env.REACT_APP_ADMIN_URL, - siteUrl: process.env.REACT_APP_SITE_URL || process.env.REACT_APP_ADMIN_URL, - plans: { - monthly: process.env.REACT_APP_SITE_MONTHLY_PLAN || '10', - yearly: process.env.REACT_APP_SITE_YEARLY_PLAN || '99', - currency: process.env.REACT_APP_SITE_PLAN_CURRENCY || 'USD', - currencySymbol: process.env.REACT_APP_SITE_PLAN_CURRENCY_SYMBOL || '$' - } - }; - initMembersJS({site}); + const adminUrl = process.env.REACT_APP_ADMIN_URL; + initMembersJS({adminUrl}); }