feat(cms): white-label email templates and API doc config
All checks were successful
Build and publish / build (pull_request) Successful in 4m38s
All checks were successful
Build and publish / build (pull_request) Successful in 4m38s
Replace all hardcoded muellerprints brand identity in email templates with template variables (shopName, shopContactName, shopAddress, shopPhone, shopEmail, shopLogoUrl, shopSecondaryLogoUrl) sourced from env vars SHOP_NAME, SHOP_CONTACT_NAME, SHOP_ADDRESS, SHOP_PHONE, SHOP_EMAIL, SHOP_LOGO_URL, SHOP_SECONDARY_LOGO_URL. API documentation title/description now driven by API_TITLE and API_DESCRIPTION env vars. Closes #1
This commit is contained in:
@@ -10,6 +10,14 @@ export const paypalEnvironment = process.env.PAYPAL_ENVIRONMENT! === "production
|
||||
|
||||
export const adminEmail = process.env.ADMIN_EMAIL_ADDRESS!;
|
||||
|
||||
export const shopName = process.env.SHOP_NAME ?? "Shop";
|
||||
export const shopContactName = process.env.SHOP_CONTACT_NAME ?? "";
|
||||
export const shopAddress = process.env.SHOP_ADDRESS ?? "";
|
||||
export const shopPhone = process.env.SHOP_PHONE ?? "";
|
||||
export const shopEmail = process.env.SHOP_EMAIL ?? process.env.ADMIN_EMAIL_ADDRESS ?? "";
|
||||
export const shopLogoUrl = process.env.SHOP_LOGO_URL ?? "";
|
||||
export const shopSecondaryLogoUrl = process.env.SHOP_SECONDARY_LOGO_URL ?? "";
|
||||
|
||||
// TODO: Should be retrieved from DepotApi
|
||||
export const vatIncludedDecimal = 1.19;
|
||||
// TODO: Should be retrieved from DepotApi
|
||||
|
||||
Reference in New Issue
Block a user