Files
sam-react-prod/next.config.ts

20 lines
692 B
TypeScript
Raw Normal View History

import type { NextConfig } from "next";
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
const nextConfig: NextConfig = {
turbopack: {}, // ✅ CRITICAL: Next.js 15 + next-intl compatibility
typescript: {
// ⚠️ WARNING: This allows production builds to complete even with TypeScript errors
// Only use during development. Remove for production deployments.
ignoreBuildErrors: true,
},
eslint: {
// Allow production builds to complete even with ESLint warnings
ignoreDuringBuilds: false, // Still check ESLint but don't fail on warnings
},
};
export default withNextIntl(nextConfig);