import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  // Standalone output: generates self-contained server.js + minimal node_modules
  // Required for the production Dockerfile multi-stage build
  output: "standalone",

  // Experimental: Vietnamese-first locale handling
  // (i18n routing skipped — single language, defer to Phase 4)

  images: {
    remotePatterns: [
      // Allow placeholder images during dev / blog covers
      { protocol: "https", hostname: "picsum.photos" },
      { protocol: "https", hostname: "images.unsplash.com" },
    ],
  },

  // Compress static assets in production
  compress: true,

  // Tighten security headers (more added in middleware later)
  poweredByHeader: false,
};

export default nextConfig;
