Files
TODO_list_system/frontend/next.config.js
beabigegg b0c86302ff 1ST
2025-08-29 16:25:46 +08:00

22 lines
494 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5000',
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5000'}/api/:path*`,
},
]
},
images: {
domains: ['localhost'],
},
}
module.exports = nextConfig