/** @type {import('next').NextConfig} */
const nextConfig = {
  // Configuration for SSR on cPanel Node.js hosting
  trailingSlash: true,
  images: {
    unoptimized: true, // Required for cPanel compatibility
  },
  // Configure for cPanel subdirectory deployment if needed
  // basePath: '/your-subdirectory', // Uncomment and modify if deploying to subdirectory

  // Optimize for production
  swcMinify: true,

  // Ensure compatibility with cPanel hosting
  experimental: {
    esmExternals: false,
  },
};

module.exports = nextConfig;
