feat(WEB): Vercel 배포 대응 및 타입 안정성 개선
- puppeteer → puppeteer-core + @sparticuz/chromium 전환 (Vercel 서버리스 호환) - PDF 생성 API 로컬/Vercel 환경 분기 처리 - next.config.ts: ignoreBuildErrors false로 전환 - WorkOrder items에 orderNodeId/orderNodeName 필드 추가 - 결재선 데이터에 name/dept 필드 추가 - OrderSalesDetailView 타입 캐스팅 안전하게 수정 - vercel.json 설정 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
|
||||
const nextConfig: NextConfig = {
|
||||
reactStrictMode: false, // 🧪 TEST: Strict Mode 비활성화로 중복 요청 테스트
|
||||
turbopack: {}, // ✅ CRITICAL: Next.js 15 + next-intl compatibility
|
||||
serverExternalPackages: ['puppeteer'], // puppeteer는 Node.js 전용 - Webpack 번들 제외
|
||||
serverExternalPackages: ['puppeteer-core', '@sparticuz/chromium'], // Vercel 서버리스 PDF 생성용 - Webpack 번들 제외
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
@@ -21,13 +21,9 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
},
|
||||
typescript: {
|
||||
// ⚠️ WARNING: This allows production builds to complete even with TypeScript errors
|
||||
// Only use during development. Remove for production deployments.
|
||||
ignoreBuildErrors: true,
|
||||
ignoreBuildErrors: false,
|
||||
},
|
||||
eslint: {
|
||||
// ⚠️ WARNING: Temporarily ignore ESLint during builds for migration
|
||||
// TODO: Fix ESLint errors after migration is complete
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
// Capacitor 패키지는 모바일 앱 전용 - 웹 빌드에서 제외
|
||||
|
||||
Reference in New Issue
Block a user