diff --git a/apps/push.js b/apps/push.js index d1d8a26..27e9a4f 100644 --- a/apps/push.js +++ b/apps/push.js @@ -4,7 +4,8 @@ import { bundleID, apnKey, apnKeyID, apnTeamID } from '../private/config.js'; // APNs 옵션 설정 const options = { token: { - key: `../private/${apnKey}`, // 다운로드한 .p8 파일 경로 + // key: `../private/${apnKey}`, // 다운로드한 .p8 파일 경로 + key: path.join(__dirname, '../private', apnKey), // 절대 경로로 변경 keyId: apnKeyID, // Apple Developer Console에서 얻은 키 ID teamId: apnTeamID, // Apple Developer Console에서 얻은 팀 ID },