diff --git a/.env.template b/.env.template index 77ea7a22..696490fd 100644 --- a/.env.template +++ b/.env.template @@ -41,6 +41,7 @@ STRIPE_SK_TEST=sk_test_R3Ny2VG7nPgeJFrtXdt8mrPc SENDGRID_MODE_SANDBOX=false # APN +APN_URL=https://api.sandbox.push.apple.com APN_BUNDLE_ID= APN_TEAM_ID= APN_KEY_ID= diff --git a/src/config/initializers/apn.ts b/src/config/initializers/apn.ts index 014e3fd9..77359081 100644 --- a/src/config/initializers/apn.ts +++ b/src/config/initializers/apn.ts @@ -10,7 +10,7 @@ export default class Apn { private reconnectDelay = 1000; private readonly bundleId = process.env.APN_BUNDLE_ID; - private readonly apnUrl = process.env.NODE_ENV as string; + private readonly apnUrl = process.env.APN_URL as string; private jwt: string | null = null; private jwtGeneratedAt = 0;