24 lines
443 B
JavaScript
24 lines
443 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://backend:8080/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
domains: ['localhost'],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'localhost',
|
|
port: '80',
|
|
pathname: '/images/**',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |