Commit 0f56e115 authored by Administrator's avatar Administrator

Update frontend/next.config.js via Son of Anton

parent 51fe0dc0
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true,
output: 'standalone', output: 'standalone',
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
protocol: 'http', protocol: 'https',
hostname: 'localhost', hostname: '**',
port: '9000',
pathname: '/**',
}, },
],
},
async rewrites() {
return [
{ {
source: '/api/:path*', protocol: 'http',
destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001/api'}/:path*`, hostname: '**',
}, },
]; ],
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment