Skip to content

Commit 61aa9a9

Browse files
committed
[fix] next.config.js 수정, workflow를 CI만 되도록 수정
1 parent 558a6b0 commit 61aa9a9

3 files changed

Lines changed: 42 additions & 58 deletions

File tree

.github/workflows/CI.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Next.js CI (Build & Lint Check)
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# 1. 소스코드 가져오기
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
# 2. Node.js 환경 세팅
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: "20"
24+
cache: "pnpm"
25+
26+
# 3. pnpm 설치
27+
- name: Enable corepack and install pnpm
28+
run: |
29+
corepack enable
30+
corepack prepare pnpm@latest --activate
31+
pnpm install --frozen-lockfile
32+
33+
# 4. Lint 확인
34+
- name: Run lint
35+
run: pnpm run lint
36+
37+
# 5. 빌드 테스트 (SSR 앱 빌드 확인)
38+
- name: Build project
39+
run: pnpm run build

.github/workflows/s3_cloudfront.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

next.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
output: "export",
3+
reactStrictMode: true, // 권장 옵션
4+
swcMinify: true, // 빌드 최적화
45
images: {
5-
unoptimized: true,
6+
unoptimized: false, // Amplify SSR에서 자동 최적화 사용
67
},
78
};
89

0 commit comments

Comments
 (0)