Files
forum-frontend/next.config.js
T
2024-03-11 18:12:31 +01:00

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;