Skip to content

Commit

Permalink
Add env
Browse files Browse the repository at this point in the history
  • Loading branch information
beming-dev committed Jan 11, 2025
1 parent 87743c1 commit bcbe571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bcbe571

Please sign in to comment.