update implementation and test for getAPNsFullUrlToUse

This commit is contained in:
2025-02-11 11:58:13 -08:00
parent bf1290bbc8
commit a74a6c995a
2 changed files with 7 additions and 7 deletions

View File

@@ -155,9 +155,9 @@ export class NotificationService {
const devBaseUrl = "https://api.development.push.apple.com"
const prodBaseUrl = "https://api.push.apple.com"
let hostToUse = prodBaseUrl;
if (process.env.NODE_ENV !== "production") {
hostToUse = devBaseUrl;
let hostToUse = devBaseUrl;
if (process.env.APNS_IS_PRODUCTION === "1") {
hostToUse = prodBaseUrl;
}
const path = "/3/device/" + deviceId;