Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 882 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 882 Bytes

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.