Skip to content

Commit a17d004

Browse files
authored
Merge pull request #282 from GDGoCINHA/develop
Merge Dev
2 parents 1b8f651 + 7f74325 commit a17d004

255 files changed

Lines changed: 12147 additions & 13058 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": [
3+
"next/core-web-vitals",
4+
"prettier"
5+
]
36
}

.github/workflows/deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818
env:
1919
NEXT_PUBLIC_GOOGLE_REDIRECT_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_CLIENT_ID }}
20-
NEXT_PUBLIC_GOOGLE_REDIRECT_URI: ${{ secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_URI }}
20+
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }}
2121

2222
steps:
2323
- name: Checkout source code
2424
uses: actions/checkout@v4
2525

26-
- name: Use Node.js 20
26+
- name: Use Node.js 22
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '20'
29+
node-version: '22'
3030
cache: 'yarn'
3131

3232
- name: Set env for develop
@@ -35,15 +35,15 @@ jobs:
3535
echo "TARGET_BUCKET=${{ secrets.AWS_S3_BUCKET_DEV }}" >> $GITHUB_ENV
3636
echo "NEXT_PUBLIC_APP_ENV=dev" >> $GITHUB_ENV
3737
echo "NEXT_PUBLIC_BASE_API_URL=${{ secrets.NEXT_PUBLIC_BASE_API_URL_DEV }}" >> $GITHUB_ENV
38-
echo "NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }}" >> $GITHUB_ENV
38+
echo "NEXT_PUBLIC_GOOGLE_REDIRECT_URI=${{ secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_URI_DEV }}" >> $GITHUB_ENV
3939
4040
- name: Set env for main
4141
if: github.ref == 'refs/heads/master'
4242
run: |
4343
echo "TARGET_BUCKET=${{ secrets.AWS_S3_BUCKET }}" >> $GITHUB_ENV
4444
echo "NEXT_PUBLIC_APP_ENV=production" >> $GITHUB_ENV
4545
echo "NEXT_PUBLIC_BASE_API_URL=${{ secrets.NEXT_PUBLIC_BASE_API_URL }}" >> $GITHUB_ENV
46-
echo "NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }}" >> $GITHUB_ENV
46+
echo "NEXT_PUBLIC_GOOGLE_REDIRECT_URI=${{ secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_URI }}" >> $GITHUB_ENV
4747
4848
- name: Install dependencies
4949
run: yarn install --frozen-lockfile
@@ -60,19 +60,19 @@ jobs:
6060

6161
# (선택) 캐시 헤더 전략: 해시된 자산은 장기 캐시, HTML은 no-cache
6262
# 프로젝트에 맞게 include/exclude 패턴 조정
63-
- name: Upload static assets (long cache)
63+
- name: Sync static assets (long cache, delete removed)
6464
run: |
65-
aws s3 cp ./out s3://$TARGET_BUCKET \
66-
--recursive \
65+
aws s3 sync ./out s3://$TARGET_BUCKET \
66+
--delete \
6767
--exclude "*" \
6868
--include "_next/**" --include "static/**" --include "assets/**" \
6969
--cache-control "public, max-age=31536000, immutable" \
7070
--metadata-directive REPLACE
71-
- name: Upload html (no cache)
71+
- name: Sync html (no cache, delete removed)
7272
run: |
73-
aws s3 cp ./out s3://$TARGET_BUCKET \
74-
--recursive \
75-
--exclude "_next/*" --exclude "static/*" --exclude "assets/*" \
73+
aws s3 sync ./out s3://$TARGET_BUCKET \
74+
--delete \
75+
--exclude "_next/**" --exclude "static/**" --exclude "assets/**" \
7676
--cache-control "no-cache" \
7777
--metadata-directive REPLACE
7878
# (단순화 원하면 기존 sync 한 줄 유지 가능)

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ yarn-error.log*
4040
next-env.d.ts
4141

4242
# ide files
43-
.idea/*
43+
.idea

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.next
3+
out
4+
build
5+
coverage
6+
dist

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": false,
4+
"tabWidth": 2,
5+
"trailingComma": "none",
6+
"printWidth": 100,
7+
"endOfLine": "lf"
8+
}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 1단계: 빌드 환경
2-
FROM node:18 AS builder
2+
FROM node:22 AS builder
33

44
WORKDIR /app
55

@@ -26,7 +26,7 @@ RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
2626
RUN ls -la /app/out || echo "out 디렉토리가 없습니다"
2727

2828
# 2단계: 실행 환경
29-
FROM node:18
29+
FROM node:22
3030

3131
WORKDIR /app
3232

@@ -51,4 +51,4 @@ RUN ls -la /app/.next || echo ".next 디렉토리가 없습니다"
5151
EXPOSE 3000
5252

5353
# Next.js 서버 시작
54-
CMD ["npm", "run", "start"]
54+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)