Loading video...

Video Failed to Load

Go Home

Codex tip: Build and deploy APIs with Sites Not just web apps. Below is a JSON API using Hono, database storage, typed Drizzle queries, and a live database viewer. It was all built, deployed, and managed from Codex - with the web frontend. Bonus: Had Codex generate and run...

11,729 views • 2 months ago •via X (Twitter)

7 Comments

Stephen's profile picture
Stephen2 months ago

Plus, Custom Domain config is available.

Mahmoud's profile picture
Mahmoud2 months ago

I missed seeing you on my time line. Congrats on joining the Codex team!! 😄 Codex is my daily driver

Stephen's profile picture
Stephen2 months ago

You're showing up on mine too - The world is definitely healing 🤣 Codexing all the things!

Neuromancer's profile picture
Neuromancer2 months ago

How do you add secrets /api token to the sites ?

Stephen's profile picture
Stephen2 months ago

Environment vars and secrets - more docs here -

aaoo's profile picture
aaoo2 months ago

How did it handle migrations and access control for the live DB viewer after deploy?

Stephen's profile picture
Stephen2 months ago

Behind the scenes, the DB is a D1 binding (@CloudflareDev) that is available to the server side compute env.

Related Videos