20 lines
468 B
JavaScript
20 lines
468 B
JavaScript
const path = require('path');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
distDir: 'out',
|
|
sassOptions: {
|
|
includePaths: [path.join(__dirname, 'styles')],
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://localhost:5000/:path*', // Proxy to Backend IMPORTANT TO SET THE CORRECT PORT
|
|
},
|
|
];
|
|
}
|
|
};
|
|
|
|
module.exports = nextConfig;
|