next.config.js 598 B

12345678910111213141516171819202122
  1. /**
  2. * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
  3. * for Docker builds.
  4. */
  5. import path from "node:path";
  6. import { fileURLToPath } from "node:url";
  7. import "./src/env.js";
  8. const projectRoot = path.dirname(fileURLToPath(import.meta.url));
  9. /** @type {import("next").NextConfig} */
  10. const config = {
  11. devIndicators: false,
  12. serverExternalPackages: ["@react-pdf/renderer"],
  13. // Évite que Turbopack prenne un lockfile hors repo (ex. %USER%\package-lock.json) comme racine.
  14. turbopack: {
  15. root: projectRoot,
  16. },
  17. };
  18. export default config;