Skip to content

Instantly share code, notes, and snippets.

View snakysnake's full-sized avatar

snakysnake

View GitHub Profile
@snakysnake
snakysnake / Proxy-Endpoint-Hono.md
Last active October 25, 2025 14:33
Super Lightweight Proxy for Hono

Nice Little Hono Proxy Endpoint

This is perfect if you want to migrate from Express.JS (or any other framework) to Hono without Downtime:

Just include this Proxy Server Endpoint at the End of your Hono Endpoints (usually index.ts):

// PROXY SERVER ENDPOINT
app.all('/*', async (c) => {
  const legacyBackend = 'http://localhost:3000'; // proxy target
  const newBackend = 'http://localhost:8787'; // proxy server location