/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  async rewrites() {
    const api = process.env.ENTROPYK_API_URL || "http://localhost:3030";
    return [
      { source: "/api/entropyk/:path*", destination: `${api}/api/:path*` },
    ];
  },
};

export default nextConfig;
