Skip to content

Commit

Permalink
fix : image 배포 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji-hoon96 committed Aug 23, 2024
1 parent 7f07f1d commit 3eec6ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ FROM node:18-alpine AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NEXT_PUBLIC_IMAGE_BASE_URL=your_image_base_url
ENV NEXT_PUBLIC_API_BASE_URL=your_api_base_url

RUN apk add --no-cache libc6-compat
RUN npm install -g pnpm
Expand Down
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const nextConfig = {
remotePatterns: [
{
protocol: 'https',
hostname: process.env.NEXT_PUBLIC_IMAGE_BASE_URL.replace(
hostname: 'https://dnd-11th-6.s3.ap-northeast-2.amazonaws.com'.replace(
/^https?:\/\//,
'',
),
Expand All @@ -21,7 +21,7 @@ const nextConfig = {
return [
{
source: '/api/v1/:path*',
destination: `${process.env.NEXT_PUBLIC_API_BASE_URL}/:path*`,
destination: 'https://api.get-snappy.co.kr/api/v1/:path*',
},
]
},
Expand Down

0 comments on commit 3eec6ba

Please sign in to comment.