mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
feat(chatgpt-web): image generation + edit (Open WebUI compatible) (#1607)
Integrated into release/v3.7.0
This commit is contained in:
@@ -18,6 +18,20 @@ const nextConfig = {
|
||||
},
|
||||
},
|
||||
output: "standalone",
|
||||
// OmniRoute is a proxy for AI APIs — request bodies routinely include
|
||||
// multi-MB payloads (vision models, image edits, base64-encoded files,
|
||||
// long chat histories with embedded images). Next.js's Server Action
|
||||
// handler intercepts POSTs with multipart/form-data or
|
||||
// x-www-form-urlencoded content-types and enforces a 1 MB cap that
|
||||
// surfaces as a 413 with a confusing "Server Actions" hint, even on
|
||||
// pure route handlers. 50 MB matches what most upstream LLM providers
|
||||
// accept for image-bearing requests; tune via env if a deployment needs
|
||||
// more.
|
||||
experimental: {
|
||||
serverActions: {
|
||||
bodySizeLimit: process.env.OMNIROUTE_SERVER_ACTIONS_BODY_LIMIT || "50mb",
|
||||
},
|
||||
},
|
||||
outputFileTracingRoot: projectRoot,
|
||||
outputFileTracingExcludes: {
|
||||
// Planning/task docs are not runtime assets and can break standalone copies
|
||||
|
||||
Reference in New Issue
Block a user