Remix + Vite + Hono
https://github.com/rphlmr/react-router-hono-server
This is a demo of remix-hono with Vite.
It uses Hono Vite dev server with HTTPS
📖 See the Remix docs and the Remix Vite docs for details on supported features.
npx create-remix@latest --template rphlmr/remix-hono-vite
server/build.ts
bundles server/index.ts
and server/middlewares.ts
to build/server/index.js
build
folder and node_modules
.Copy .env.example
to .env
and fill the variables. (it is loaded by Remix for you, see this PR)
Run the Hono server with Hono Vite dev server:
npm run dev
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to. (works great on https://fly.io)
If you're familiar with deploying Hono applications you should be right at home. Just make sure to deploy the output of npm run build
build/server
build/client