Files
smart-org/apps/web/next.config.mjs
T

20 lines
476 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Workspace packages ship TypeScript source, so Next must transpile them.
transpilePackages: ["@agy/ui", "@agy/contracts"],
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? "",
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://127.0.0.1:8000/api/:path*",
},
];
},
};
export default nextConfig;