Skip to content

Vike + React with Hono (vite-dev-server for dev & node-server for prod)

Notifications You must be signed in to change notification settings

phonzammi/vike-hono-example

Repository files navigation

Vike with Hono.

This is an example of integrating Hono with Vite and Vike.

The development server uses @hono/vite-dev-server (Vite Plugin).

The production server uses @hono/node-server (Node.js Adapter for Hono).

To run this example:

  • Fork or clone this repo
cd vike-react-hono
pnpm install
# Start the Vite development server
pnpm dev 
# Build the Vike app for production
pnpm build
# Run the app in a production environment
pnpm prod

Note

The ./server/index.ts file is not transpiled. If you'd like your server to be transpiled with Vite, you can use vike-node.

Read the official documentations of Vike at vike.dev.

This repo was scaffolded with pnpm create vike.

About

Vike + React with Hono (vite-dev-server for dev & node-server for prod)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published