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

const frontendDir = path.dirname(fileURLToPath(import.meta.url));

const nextConfig: NextConfig = {
  output: "standalone",
  transpilePackages: ["@baunik/api-client", "@baunik/translations"],
  outputFileTracingRoot: frontendDir,
  turbopack: {
    root: frontendDir,
  },
};

export default nextConfig;
