fix: harden stream readiness and build output (#2317)

Integrated into release/v3.8.0 — fixes stream readiness detection for OpenAI Responses API lifecycle events, GLM timeout, Provider Limits UI, and build output cleanup.
This commit is contained in:
Raxxoor
2026-05-17 01:47:40 +01:00
committed by GitHub
parent 7e9efe7cb0
commit 5a7df8ac29
18 changed files with 655 additions and 79 deletions

View File

@@ -51,6 +51,16 @@ const securityHeaders = [
},
];
function isNextIntlExtractorDynamicImportWarning(warning) {
const message = typeof warning === "string" ? warning : warning?.message || "";
const resource = warning?.module?.resource || warning?.file || "";
const target = "next-intl/dist/esm/production/extractor/format/index.js";
return (
resource.includes(target) &&
(message.includes("import(t)") || message.includes("dependency is an expression"))
);
}
/** @type {import('next').NextConfig} */
const nextConfig = {
distDir,
@@ -140,6 +150,13 @@ const nextConfig = {
// TODO: Re-enable after fixing all sub-component useTranslations scope issues
ignoreBuildErrors: true,
},
webpack(config) {
config.ignoreWarnings = [
...(config.ignoreWarnings || []),
isNextIntlExtractorDynamicImportWarning,
];
return config;
},
images: {
unoptimized: true,
},