mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
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:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user