Spaces:
No application file
No application file
Download next.config.mjs from Humbl3m33/WEB.BUILDING.GENIOUS: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/spaces/Humbl3m33/WEB.BUILDING.GENIOUS/resolve/91c3f7c754992d1caa2b446031ccec9309b41e54/next.config.mjs
- Command line
-
hf download hf://spaces/Humbl3m33/WEB.BUILDING.GENIOUS@91c3f7c754992d1caa2b446031ccec9309b41e54/next.config.mjs
-
curl -L -o next.config.mjs https://huggingface.co/spaces/Humbl3m33/WEB.BUILDING.GENIOUS/resolve/91c3f7c754992d1caa2b446031ccec9309b41e54/next.config.mjs
827 Bytes
| /** @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 | |