import type { NextConfig } from 'next'; import path from 'node:path'; const nextConfig: NextConfig = { output: 'standalone', outputFileTracingRoot: path.join(__dirname, '../../'), basePath: '/admin', async rewrites() { return [ { source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:3078'}/api/:path*`, }, ]; }, }; export default nextConfig;