/** @type {import('next').NextConfig} */ const path = require('path'); const nextConfig = { webpack: (config) => { config.resolve.alias['@'] = path.join(__dirname, 'src'); config.parallelism = 1; return config; }, async rewrites() { return [ { source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`, }, { source: '/webhooks/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL}/webhooks/:path*`, }, ]; }, }; module.exports = nextConfig;