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 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 }) => { if (!isServer) { config.resolve.fallback = { ...config.resolve.fallback, '@capacitor/core': false, '@capacitor/push-notifications': false, '@capacitor/app': false, }; } return config; }, }; export default withNextIntl(nextConfig);