Browse Source

fix: hardcode community workflows API URL

Remove configurable COMMUNITY_WORKFLOWS_API_URL env var that caused
errors when users copied the placeholder from .env.example.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
5ff159a4fb
  1. 3
      .env.example
  2. 2
      src/app/api/community-workflows/[id]/route.ts
  3. 2
      src/app/api/community-workflows/route.ts

3
.env.example

@ -14,6 +14,3 @@ REPLICATE_API_KEY=your_replicate_api_key_here
# Get your API key from: https://fal.ai/dashboard/keys # Get your API key from: https://fal.ai/dashboard/keys
FAL_API_KEY=your_fal_api_key_here FAL_API_KEY=your_fal_api_key_here
# Community Workflows API URL (Optional - defaults to node-banana-pro hosted service)
# Set this if you're self-hosting the community workflows
COMMUNITY_WORKFLOWS_API_URL=https://your-node-banana-pro-instance.com/api/public/community-workflows

2
src/app/api/community-workflows/[id]/route.ts

@ -1,8 +1,6 @@
import { NextResponse } from "next/server"; import { NextResponse } from "next/server";
// Default to node-banana-pro hosted service
const COMMUNITY_WORKFLOWS_API_URL = const COMMUNITY_WORKFLOWS_API_URL =
process.env.COMMUNITY_WORKFLOWS_API_URL ||
"https://nodebananapro.com/api/public/community-workflows"; "https://nodebananapro.com/api/public/community-workflows";
// Allowed hostnames for presigned URL fetches (SSRF protection) // Allowed hostnames for presigned URL fetches (SSRF protection)

2
src/app/api/community-workflows/route.ts

@ -1,8 +1,6 @@
import { NextResponse } from "next/server"; import { NextResponse } from "next/server";
// Default to node-banana-pro hosted service
const COMMUNITY_WORKFLOWS_API_URL = const COMMUNITY_WORKFLOWS_API_URL =
process.env.COMMUNITY_WORKFLOWS_API_URL ||
"https://nodebananapro.com/api/public/community-workflows"; "https://nodebananapro.com/api/public/community-workflows";
/** /**

Loading…
Cancel
Save