From e9a41233b561ca0393f7f07220ca84de7ae55d55 Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Tue, 20 Aug 2024 15:01:30 +0900 Subject: [PATCH] =?UTF-8?q?[=E2=9C=A8]=20push=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/push.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/push.js b/apps/push.js index 19a8507..6f1e9f5 100644 --- a/apps/push.js +++ b/apps/push.js @@ -1,7 +1,12 @@ import apn from 'apn'; import path from 'path'; // path 모듈을 가져옵니다. +import { fileURLToPath } from 'url'; // ES 모듈에서 파일 경로를 얻기 위해 필요 import { bundleID, apnKey, apnKeyID, apnTeamID } from '../private/config.js'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + // APNs 옵션 설정 const options = { token: {