17 lines
329 B
JavaScript
17 lines
329 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
serverActions: true,
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/proxy/:path*',
|
|
destination: `${process.env.API_BASE_URL || 'http://localhost:8000'}/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|