Files
pieced-portal/next.config.mjs
admin c8ed27157f
Some checks failed
Build and Push / build (push) Failing after 28s
Phase2: Invoicecomputation/AdminpricingUI/Ainvoicemgnt
2026-05-24 13:51:38 +02:00

16 lines
538 B
JavaScript

import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
// pg uses native node bindings, @react-pdf/renderer pulls in
// fontkit / pdfkit which don't play nicely with webpack bundling.
// Both are pure server-side concerns; mark external so Next ships
// them as Node modules rather than bundling.
serverExternalPackages: ["pg", "@react-pdf/renderer"],
};
export default withNextIntl(nextConfig);