Skip to content

Commit 1409e2b

Browse files
committed
refactor: S3 호스팅을 위한 remotePatterns의 호스트 이름을 환경 변수로 변경
1 parent 189c3c2 commit 1409e2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const nextConfig: NextConfig = {
1616
remotePatterns: [
1717
{
1818
protocol: "https",
19-
hostname: "eatda-storage-dev.s3.ap-northeast-2.amazonaws.com",
19+
hostname: process.env.S3_DEV_BUCKET_HOSTNAME!,
2020
port: "",
2121
pathname: "/**",
2222
},
2323
{
2424
protocol: "https",
25-
hostname: "eatda-storage-prod.s3.ap-northeast-2.amazonaws.com",
25+
hostname: process.env.S3_PROD_BUCKET_HOSTNAME!,
2626
port: "",
2727
pathname: "/**",
2828
},

0 commit comments

Comments
 (0)