hono
hono copied to clipboard
Document for `Env` variables
Write a document on how to handle Environment variables for Cloudflare Workers. Like this:
app.post('/posts', async (c, next) => {
const auth = basicAuth({ username: c.env.NAME, password: c.env.PASS })
await auth(c, next)
})