16 lines
538 B
JavaScript
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);
|