This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Configuration from environment variables (Wrangler secrets) | |
| // Set via: wrangler secret put VERCEL_URL | |
| // Fallback to defaults for local development | |
| const VERCEL_URL = env.VERCEL_URL || "https://story-ai-studio.vercel.app"; | |
| const WEBFLOW_URL = | |
| env.WEBFLOW_URL || "https://story-renovations-staging.webflow.io"; | |
| console.log(`[Worker] Incoming request: ${pathname}`); | |
| // Route /design-studio and all sub-paths to Vercel (keep full path with basePath) |