File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
22const nextConfig = {
3- output : "export" ,
3+ reactStrictMode : true , // 권장 옵션
4+ swcMinify : true , // 빌드 최적화
45 images : {
5- unoptimized : true ,
6+ unoptimized : false , // Amplify SSR에서 자동 최적화 사용
67 } ,
78} ;
89
You can’t perform that action at this time.
0 commit comments