the-tip-top-frontend/next.config.js

23 lines
600 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
},
// Ignore build errors for pages that require client-side only rendering
typescript: {
ignoreBuildErrors: false,
},
eslint: {
ignoreDuringBuilds: false,
},
// Skip static page generation errors for client-only pages
experimental: {
missingSuspenseWithCSRBailout: false,
},
// Generate error pages instead of failing build on prerender errors
staticPageGenerationTimeout: 120,
};
module.exports = nextConfig;