ce / ui /next.config.mjs
josephrw's picture
Polish no-key AirMicroDrip backend
0800976 verified
Raw
History Blame Contribute Delete
384 Bytes
const API_BASE = process.env.API_BASE_URL || '';
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
async rewrites() {
if (!API_BASE) return [];
return [
{
source: '/api/:path*',
destination: `${API_BASE}/api/:path*`,
},
];
},
};
export default nextConfig;