diff --git a/next.config.ts b/next.config.ts index e2916b01..00284566 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,7 +4,7 @@ const nextConfig: NextConfig = { reactStrictMode: true, experimental: { serverActions: { - bodySizeLimit: "50mb", + bodySizeLimit: "2gb", }, }, turbopack: { diff --git a/src/app/api/workflow/route.ts b/src/app/api/workflow/route.ts index c0136f43..b638d887 100644 --- a/src/app/api/workflow/route.ts +++ b/src/app/api/workflow/route.ts @@ -3,6 +3,8 @@ import * as fs from "fs/promises"; import * as path from "path"; import { logger } from "@/utils/logger"; +export const maxDuration = 300; // 5 minute timeout for large workflow files + // POST: Save workflow to file export async function POST(request: NextRequest) { let directoryPath: string | undefined; diff --git a/src/lib/quickstart/prompts.ts b/src/lib/quickstart/prompts.ts index 0a52db0b..f4728f9d 100644 --- a/src/lib/quickstart/prompts.ts +++ b/src/lib/quickstart/prompts.ts @@ -52,13 +52,14 @@ Purpose: Draw/annotate on images before generation. Only use this if the user as Purpose: AI image generation using Gemini (REQUIRES both image AND text inputs). This is the primary node for image generation. - Inputs: "image" handle (accepts multiple connections), "text" handle (required) - Outputs: "image" handle +- IMPORTANT: Always use "nano-banana-pro" model with "2K" resolution by default unless the user specifically requests otherwise. - Data structure: { "inputImages": [], "inputPrompt": null, "outputImage": null, "aspectRatio": "1:1", - "resolution": "1K", + "resolution": "2K", "model": "nano-banana-pro", "useGoogleSearch": false, "status": "idle", @@ -344,7 +345,7 @@ Here is an example of a "Background Swap" workflow that combines a character wit "inputPrompt": null, "outputImage": null, "aspectRatio": "1:1", - "resolution": "1K", + "resolution": "2K", "model": "nano-banana-pro", "useGoogleSearch": false, "status": "idle",