2024-08-10 23:47:17 +08:00
|
|
|
/** @type {import('next').NextConfig} */
|
2024-08-16 23:32:19 +08:00
|
|
|
const nextConfig = {
|
|
|
|
output: 'standalone',
|
2024-08-18 23:39:01 +08:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: 'http://localhost:8080/:path*' // Proxy to Backend
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2024-08-16 23:32:19 +08:00
|
|
|
}
|
2024-08-10 23:47:17 +08:00
|
|
|
|
|
|
|
export default nextConfig;
|