Rewrite with modern stack

This commit is contained in:
martin 2025-08-22 19:28:05 +02:00
commit 1f1f20ffd6
69 changed files with 17771 additions and 1589 deletions

30
frontend/next.config.js Normal file
View file

@ -0,0 +1,30 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '3001',
pathname: '/**',
},
{
protocol: 'http',
hostname: '192.168.1.110',
port: '3001',
pathname: '/**',
},
],
},
allowedDevOrigins: ['192.168.1.110:3000', '192.168.1.110'],
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:3001'}/api/:path*`,
},
];
},
};
module.exports = nextConfig;