import type { NextConfig } from 'next'; const nextConfig: NextConfig = { output: 'standalone', experimental: { ppr: true, }, images: { remotePatterns: [ { hostname: 'avatar.vercel.sh', }, ], }, async headers() { return [ { source: '/:path*', headers: [ { key: 'Content-Security-Policy', value: 'frame-ancestors https://huggingface.co https://*.hf.space https://seriousmountain-vercel-demo.hf.space;', }, { key: 'X-Frame-Options', value: 'ALLOWALL', }, { key: 'Access-Control-Allow-Origin', value: 'https://huggingface.co', }, { key: 'Access-Control-Allow-Credentials', value: 'true', }, { key: 'Access-Control-Allow-Methods', value: 'GET, POST, PUT, DELETE, OPTIONS', }, { key: 'Access-Control-Allow-Headers', value: 'X-Requested-With, Content-Type, Authorization', }, ], }, ]; }, }; export default nextConfig;