import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', allowedDevOrigins: ['192.168.1.64'], // Compression compress: true, // Image optimization images: { formats: ['image/avif', 'image/webp'], remotePatterns: [ { protocol: "https", hostname: "habibapp.com", }, ], }, // Headers for caching and preload async headers() { return [ { source: '/:path*', headers: [ { key: 'Cache-Control', value: 'public, max-age=3600, stale-while-revalidate=86400', }, ], }, { source: '/fonts/:path*', headers: [ { key: 'Cache-Control', value: 'public, max-age=31536000, immutable', }, ], }, ]; }, }; export default nextConfig;