← back to Nineoh Guide

apps/web/next.config.mjs

13 lines

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  // Bundle everything into a self-contained server for pm2 deploy on Kamatera.
  output: "standalone",
  outputFileTracingRoot: new URL("../../", import.meta.url).pathname,
  // packages/core is TS source consumed directly — let Next transpile it.
  transpilePackages: ["@nineoh/core"],
  // pg is a server-only dependency; keep it out of the client bundle.
  serverExternalPackages: ["pg"],
};
export default nextConfig;