Rewrite with modern stack
This commit is contained in:
parent
855c61c740
commit
1f1f20ffd6
69 changed files with 17771 additions and 1589 deletions
30
frontend/next.config.js
Normal file
30
frontend/next.config.js
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue