trying to learn serverless deployment ,with CloudFlare as of 20th June 2024 Using hono https://hono.dev/concepts/motivation npm create hono@latest my-app cd my-app npm i import { Hono } from 'hono' const app = new Hono()
app.get('/', (c) => c.text('Hello Cloudflare Workers!'))
export default app import { Hono } from 'hono'
const app = new Hono()
app.get('/', async (c) => { const body = await c.req.json() console.log(body); console.log(c.req.header("Authorization")); console.log(c.req.query("param"));
return c.text('Hello Hono!') })
export default app npm run deploy https://projects.100xdevs.com/tracks/eooSv7lnuwBO6wl9YA5w/serverless-11