Instantiate hono using the same code across different runtimes.
Using hono-runtime npm package:
npm i hono-runtime
No need to include hono
package because hono-runtime
includes hono as its dependency.
You can also use a template to start a hono-runtime project:
npm create hono-runtime-template
import { Hono } from 'hono-runtime/cloudflare'
const app = new Hono()
/* your code here */
export default app.serve()