Files
aerbim-ht-monitor/frontend/next.config.js
2025-10-15 19:49:19 +03:00

28 lines
653 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
outputFileTracingExcludes: {
'./**': ['./assets/big-models/**/*'],
},
async rewrites() {
const backend = process.env.BACKEND_URL || 'http://127.0.0.1:8000/api/v1'
return [
{
source: '/static-models/:path*',
destination: '/api/big-models/:path*',
},
{
source: '/api/v1/account/user',
destination: `${backend}/account/user/`,
},
{
source: '/api/v1/:path*',
destination: `${backend}/:path*`,
},
]
},
experimental: {
webpackBuildWorker: false,
},
}
module.exports = nextConfig