19 lines
344 B
JavaScript
19 lines
344 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
appDir: true,
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
domains: ['localhost'],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig; |