feat: implement R4 production hardening

- Add configurable ingestion batch item limits
- Improve client serialization and sanitization
- Add graceful handling for corrupt GZIP partitions in data API
- Expand admin session token scope
- Update project documentation for R4 status
This commit is contained in:
Team Dark Devil committed 2026-11-21 22:15:32 +06:00
1 parent 8132087085
commit ae9b554189
59 files changed
+16879 -1074

No files matched your search

+15
View File
@@ -18,6 +18,21 @@ const nextConfig: NextConfig = {
},
output: 'standalone',
transpilePackages: ['motion'],
async rewrites() {
const ingestionBase = (
process.env.INGESTION_INTERNAL_URL || 'http://127.0.0.1:4000'
).replace(/\/+$/, '');
return [
{
source: '/vcon/files-engine',
destination: `${ingestionBase}/vcon/files-engine`,
},
{
source: '/vcon/files-engine/:path*',
destination: `${ingestionBase}/vcon/files-engine/:path*`,
},
];
},
webpack: (config, {dev}) => {
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.