title: TanStack React + Vite
description: The default Vite + React starter, utilizing Caddy
to serve the built app
tags:
This is a lightweight React starter template using Vite, TypeScript with React, and 2 core packages from the TanStack:
It is deployed with the memory efficient Caddy web server, and can be set up on Railway in a single click.
bun install
bun run dev
Caddy
for serving the app?See: https://github.com/brody192/vite-react-template#-why-use-caddy-when-deploying-to-railway
Caddy is a powerful, enterprise-ready, open source web server, and therefore Caddy is far better suited to serve websites than Vite is, using Caddy will result in much less memory and cpu usage compared to serving with Vite (much lower running costs too).