import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  // No `output: "standalone"`: the image runs `next start` over a real
  // node_modules because the worker needs one anyway, and the Dockerfile says
  // why. Declaring it here only built a `.next/standalone` nobody ran and
  // shipped it inside the image.

  // `pg` opens sockets and loads native-ish bits at runtime; bundling it into
  // the server chunks is never what we want.
  serverExternalPackages: ["pg"],
};

export default nextConfig;
