diff --git a/src/main/java/com/example/lineofduty/common/config/GcpConfig.java b/src/main/java/com/example/lineofduty/common/config/GcpConfig.java index 42735b0..9ae39d5 100644 --- a/src/main/java/com/example/lineofduty/common/config/GcpConfig.java +++ b/src/main/java/com/example/lineofduty/common/config/GcpConfig.java @@ -34,10 +34,11 @@ public class GcpConfig { @Bean public GoogleCredentials googleCredentials() throws IOException { - + //aws 환경 json 줄바꿈 해결 String fixedPrivateKey = privateKey .replace("\\n", "\n") - .replace("\"", ""); // 따옴표 중복 제거 + .replace("\\\\n", "\n") + .trim(); // 2. JSON 구조를 Map으로 생성 Map jsonMap = new HashMap<>();