alot and reverse proxy

This commit is contained in:
2024-03-11 18:12:31 +01:00
parent 751d57d58b
commit 914fc91731
19 changed files with 1209 additions and 41 deletions
+8 -1
View File
@@ -2,11 +2,18 @@ const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
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;