Add `export const dynamic = 'force-dynamic'` to `/api/tools/execute/[...slug]` to prevent Next.js from attempting static generation at build time. The AI SDK (used via executeToolWithAgent) requires tiktoken_bg.wasm which cannot be loaded during static generation. Marking as dynamic ensures the route is only executed at runtime. Note: This partially addresses the build error but further investigation needed for complete resolution of tiktoken WASM loading in Next.js 16 + Turbopack. Relates to: "Error: Missing tiktoken_bg.wasm" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| web | ||