Files
coop/frontend/next.config.js
T

21 lines
479 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
allowedDevOrigins: ['172.20.1.238'],
async rewrites() {
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001';
return [
{
source: '/api/:path*',
destination: `${apiUrl}/api/:path*`,
},
{
source: '/webhooks/:path*',
destination: `${apiUrl}/webhooks/:path*`,
},
];
},
};
module.exports = nextConfig;