import type { NextConfig } from "next";

import createNextIntlPlugin from "next-intl/plugin";

const withNextIntl = createNextIntlPlugin("./i18n/request.ts");

const nextConfig: NextConfig = {
  // Standalone build emits a minimal self-contained server bundle in
  // `.next/standalone`, which the production Docker image copies as-is —
  // avoids shipping the full node_modules and shrinks the runner image
  // from several hundred MB down to ~150 MB.
  output: "standalone",
};

export default withNextIntl(nextConfig);
