mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Cleaned up script intiailization data
refs https://github.com/TryGhost/members.js/issues/6 Removes all data initialization setup except `adminUrl` as we now fetch everything directly from API
This commit is contained in:
parent
028139a0e1
commit
e59e8186bd
@ -1,2 +1 @@
|
|||||||
REACT_APP_ADMIN_URL=http://localhost:2368/ghost
|
REACT_APP_ADMIN_URL=http://localhost:2368/ghost
|
||||||
REACT_APP_SITE_URL=http://localhost:2368
|
|
||||||
|
@ -16,17 +16,8 @@ window.GhostMembers = {
|
|||||||
initMembersJS: initMembersJS
|
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) {
|
if (process.env.REACT_APP_ADMIN_URL) {
|
||||||
let site = {
|
const adminUrl = process.env.REACT_APP_ADMIN_URL;
|
||||||
adminUrl: process.env.REACT_APP_ADMIN_URL,
|
initMembersJS({adminUrl});
|
||||||
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});
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user