- fcm.ts: npm 패키지 import → window.Capacitor 전역 객체 사용 - Capacitor 앱이 런타임에 주입하는 전역 객체 활용 - 웹 빌드 시 '@capacitor/core' 모듈 오류 해결 - next.config.ts: Capacitor 패키지 webpack fallback 추가 - types.ts: VendorManagement 중복 선언 제거 (59줄 감소)
39 lines
1.3 KiB
TypeScript
39 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: true, // 🧪 TEST: Strict Mode 비활성화로 중복 요청 테스트
|
|
turbopack: {}, // ✅ CRITICAL: Next.js 15 + next-intl compatibility
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: '10mb', // 이미지 업로드를 위한 제한 증가
|
|
},
|
|
},
|
|
typescript: {
|
|
// ⚠️ WARNING: This allows production builds to complete even with TypeScript errors
|
|
// Only use during development. Remove for production deployments.
|
|
ignoreBuildErrors: true,
|
|
},
|
|
eslint: {
|
|
// ⚠️ WARNING: Temporarily ignore ESLint during builds for migration
|
|
// TODO: Fix ESLint errors after migration is complete
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
// Capacitor 패키지는 모바일 앱 전용 - 웹 빌드에서 제외
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
'@capacitor/core': false,
|
|
'@capacitor/push-notifications': false,
|
|
'@capacitor/app': false,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default withNextIntl(nextConfig);
|