Files
sam-react-prod/next.config.ts
권혁성 c3266e5d3f deploy: 2026-03-12 배포
- feat: [QMS] 점검표 템플릿 Mock→API 연동 + 로트심사 UI 개선
- feat: [견적] 제어기 타입 변경 + 가이드레일 제품연동 + 수식보기 개선
- feat: [생산/출하] 작업자 화면 step 서버 토글 + 출하 수주 조인 연동
- feat: [배포] Jenkinsfile 롤백 기능 추가
- feat: [입고] 성적서 파일 백엔드 연동 + CSP 도메인 허용
- feat: ESLint 정리 및 전체 코드 품질 개선
- fix: [QMS] 제품검사 성적서 렌더링 개선 + 빌드 타입 에러 수정
- fix: [품질검사] LegacyPhotoUpload images undefined 에러 수정
- fix: middleware publicRoutes 타입 에러 수정
2026-03-12 15:21:20 +09:00

48 lines
1.3 KiB
TypeScript

import type { NextConfig } from "next";
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
const nextConfig: NextConfig = {
reactStrictMode: false, // 🧪 TEST: Strict Mode 비활성화로 중복 요청 테스트
turbopack: {}, // ✅ CRITICAL: Next.js 15 + next-intl compatibility
allowedDevOrigins: ['192.168.0.*'], // 로컬 네트워크 기기 접속 허용
serverExternalPackages: ['puppeteer'], // PDF 생성용 - Webpack 번들 제외
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'placehold.co',
},
],
},
experimental: {
serverActions: {
bodySizeLimit: '10mb', // 이미지 업로드를 위한 제한 증가
},
},
typescript: {
ignoreBuildErrors: false,
},
eslint: {
ignoreDuringBuilds: true,
},
// Capacitor 패키지는 모바일 앱 전용 - 웹 빌드에서 제외
webpack: (config, { isServer }) => {
// macOS 26 호환성: webpack 캐시 비활성화 (rename ENOENT 방지)
config.cache = false;
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
'@capacitor/core': false,
'@capacitor/push-notifications': false,
'@capacitor/app': false,
};
}
return config;
},
};
export default withNextIntl(nextConfig);