/** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", transpilePackages: ["@nexadash/ui", "@nexadash/shared", "@nexadash/plugin-sdk"], env: { NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000", }, async rewrites() { return [ { source: "/api/:path*", destination: `${process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"}/api/:path*`, }, ]; }, }; module.exports = nextConfig;