import type { NextConfig } from "next"; const nextConfig: NextConfig = { // output: 'standalone', allowedDevOrigins: ['10.0.2.2'], // 1. On ignore les erreurs de type et ESLint pour que le build // de production ne plante pas à cause des imports Prisma typescript: { ignoreBuildErrors: true, }, // 2. En-têtes de sécurité HTTP async headers() { return [ { source: '/(.*)', headers: [ { key: 'X-Frame-Options', value: 'DENY', }, { key: 'X-Content-Type-Options', value: 'nosniff', }, { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin', }, { key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()', }, ], }, ]; }, // 3. (Optionnel) Pour faciliter le chargement des images si tu en as images: { remotePatterns: [ { protocol: 'https', hostname: '**', }, ], }, }; export default nextConfig;