- Add Express server with vite-express for combined frontend/API serving - Create modular API route structure (server/api/) - Implement Claude API proxy with proper header injection - Support split deployment via API_ONLY and ALLOWED_ORIGINS env vars - Remove Claude proxy from Vite config (now handled by Express) - Add migration plan documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
271 B
JavaScript
15 lines
271 B
JavaScript
import { Router } from "express";
|
|
import claudeRouter from "./claude.js";
|
|
|
|
const router = Router();
|
|
|
|
// Claude API proxy
|
|
router.use("/claude", claudeRouter);
|
|
|
|
// Health check
|
|
router.get("/health", (req, res) => {
|
|
res.json({ status: "ok" });
|
|
});
|
|
|
|
export default router;
|