← back to Govarbitrage

next.config.ts

19 lines

import type { NextConfig } from "next";
import { fileURLToPath } from "node:url";

const nextConfig: NextConfig = {
  // Pin the workspace root (a stray parent lockfile confuses Turbopack's inference).
  turbopack: { root: fileURLToPath(new URL(".", import.meta.url)) },
  // Prisma 7 client is generated into node_modules; keep it external to the
  // server bundle so the query engine binary resolves at runtime.
  serverExternalPackages: ["@prisma/client", "bullmq", "ioredis"],
  images: {
    remotePatterns: [
      { protocol: "https", hostname: "**" },
      { protocol: "http", hostname: "**" },
    ],
  },
};

export default nextConfig;