fix(http): add malformed JSON syntax error handling middleware and update dist
CI / Build & Quality Check (push) Has been cancelled
CI / Build & Quality Check (push) Has been cancelled
This commit is contained in:
Vendored
+7
-2
@@ -10,6 +10,7 @@ export function loadConfig(src = process.env) {
|
||||
const steadfastSecretKey = src.STEADFAST_SECRET_KEY || "";
|
||||
const pathaoClientId = src.PATHAO_CLIENT_ID || "";
|
||||
const pathaoClientSecret = src.PATHAO_CLIENT_SECRET || "";
|
||||
const googleMapsKey = src.GOOGLE_MAPS_API_KEY || "";
|
||||
return {
|
||||
steadfast: {
|
||||
apiKey: steadfastApiKey,
|
||||
@@ -36,9 +37,13 @@ export function loadConfig(src = process.env) {
|
||||
apiKey: src.PAPERFLY_API_KEY || "",
|
||||
username: src.PAPERFLY_USERNAME || "",
|
||||
password: src.PAPERFLY_PASSWORD || "",
|
||||
storeName: src.PAPERFLY_STORE_NAME || "",
|
||||
storeName: src.PAPERFLY_STORE_NAME || "Aura Merchant",
|
||||
baseUrl: src.PAPERFLY_BASE_URL || "https://api.paperfly.com.bd",
|
||||
enabled: Boolean(src.PAPERFLY_API_KEY && src.PAPERFLY_STORE_NAME),
|
||||
enabled: Boolean(src.PAPERFLY_API_KEY && src.PAPERFLY_USERNAME),
|
||||
},
|
||||
googleMaps: {
|
||||
apiKey: googleMapsKey,
|
||||
enabled: Boolean(googleMapsKey),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user