Browse Source

mem limit increase and prompt to workflow improvements

handoff-20260429-1057
shrimbly 6 months ago
parent
commit
80b09d7e31
  1. 2
      next.config.ts
  2. 2
      src/app/api/workflow/route.ts
  3. 5
      src/lib/quickstart/prompts.ts

2
next.config.ts

@ -4,7 +4,7 @@ const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
serverActions: {
bodySizeLimit: "50mb",
bodySizeLimit: "2gb",
},
},
turbopack: {

2
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;

5
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",

Loading…
Cancel
Save