Spaces:
No application file
No application file
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| reactStrictMode: true, | |
| experimental: { | |
| serverComponentsExternalPackages: ['mongodb'] | |
| }, | |
| output: 'standalone', | |
| env: { | |
| CUSTOM_KEY: process.env.CUSTOM_KEY, | |
| }, | |
| async headers() { | |
| return [ | |
| { | |
| source: '/api/:path*', | |
| headers: [ | |
| { key: 'Access-Control-Allow-Origin', value: '*' }, | |
| { key: 'Access-Control-Allow-Methods', value: 'GET, POST, PUT, DELETE, OPTIONS' }, | |
| { key: 'Access-Control-Allow-Headers', value: 'Content-Type, Authorization' }, | |
| ], | |
| }, | |
| ] | |
| }, | |
| // Added eslint, typescript, and images configurations | |
| eslint: { | |
| ignoreDuringBuilds: true, | |
| }, | |
| typescript: { | |
| ignoreBuildErrors: true, | |
| }, | |
| images: { | |
| unoptimized: true, | |
| }, | |
| } | |
| export default nextConfig | |