Files
pbakaus_impeccable/api/download/bundle/[provider].js
T
Paul BakausandClaude Opus 4.5 7aefe19b2a Fix Vercel deployment: Tailwind CSS, API endpoints, and Bun runtime
- Add missing /api/patterns.js endpoint (was causing 404)
- Fix Tailwind CSS: compile with @tailwindcss/cli instead of Bun virtual module
- Update API handlers to use standard Vercel function export format
- Configure vercel.json with proper Bun runtime (runtime: "bun@1")
- Add @tailwindcss/cli to devDependencies
- Add generated styles.css to .gitignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 14:21:43 -08:00

13 lines
404 B
JavaScript

import { handleBundleDownload } from "../../../server/lib/api-handlers.js";
export default async function handler(request) {
const url = new URL(request.url);
const pathParts = url.pathname.split('/').filter(Boolean);
// Extract provider from path: /api/download/bundle/[provider]
const provider = pathParts[3]; // after 'api', 'download', 'bundle'
return handleBundleDownload(provider);
}