From bcbe571e6044f306d6b4d1f65657accc13d643b2 Mon Sep 17 00:00:00 2001 From: beming-dev Date: Sat, 11 Jan 2025 22:16:59 +0900 Subject: [PATCH] Add env --- Dockerfile | 1 + buildspec.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4190b8a5..9085244b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ ARG NEXT_PUBLIC_NEXTAUTH_URL # 6. Build the Next.js app RUN NEXT_PUBLIC_SERVER_URI=$NEXT_PUBLIC_SERVER_URI \ + NEXTAUTH_URL=$NEXTAUTH_URL \ NEXT_PUBLIC_NEXTAUTH_URL=$NEXT_PUBLIC_NEXTAUTH_URL \ npm run build diff --git a/buildspec.yml b/buildspec.yml index b52b5e61..d6ec3f04 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -9,7 +9,7 @@ phases: build: commands: - echo Building the Docker image... - - docker build --build-arg NEXT_PUBLIC_SERVER_URI=https://about-back.kro.kr --build-arg NEXT_PUBLIC_NEXTAUTH_URL=https://about-front.kro.kr -t next-app . + - docker build --build-arg NEXT_PUBLIC_SERVER_URI=https://about-back.kro.kr --build-arg NEXT_PUBLIC_NEXTAUTH_URL=https://about-front.kro.kr --build-arg NEXTAUTH_URL=https://about-front.kro.kr -t next-app . - docker tag next-app 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend:latest post_build: