update add api endpoints for chat and media

This commit is contained in:
Rami Bitar
2026-06-05 12:19:48 -04:00
parent 555dade01a
commit 2144fac188
8 changed files with 117 additions and 83 deletions

7
lib/cloud.ts Normal file
View File

@@ -0,0 +1,7 @@
// Server-only config for the Frontend Cloud proxy routes.
// The API key lives here (read from a non-public env var) so it is never
// shipped to the browser bundle.
export const CLOUD_BASE = "https://cloud.frontend.co";
export const FRONTEND_API_KEY = process.env.FRONTEND_API_KEY ?? "";