All Templates / Starters

Vite + React

Vite + React

The default Vite + React starter, with Caddy

Deploy Vite + React

React Frontend

brody192/vite-react-template

Just deployed

Vite + React + Caddy

This is the default Vite + React starter provided by Vite, with Caddy added to serve the statically built site.

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)

To see how this is achieved with nixpacks, check out the fully documented nixpacks.toml file in this repository

The configuration for Caddy is called a Caddyfile, and you can edit that file to further suite your needs, by default it comes configured to serve a single page app for Vue 3, and to also gzip the responses

Relevant Caddy documentation:


Template Content

Deploy Now

Details

Brody

Created on Apr 24, 2023

1488 total projects

576 active projects

96% success on recent deploys

JavaScript, CSS, HTML

Starters



More templates in this category

View Template

New

Angular 19

Angular 19

A framework for building single-page applications using TypeScript


Dango

View Template

New

mellow-vue

mellow-vue

A full-stack Vue app with The Boring JavaScript Stack.


My Workspace

View Template
.NET8 Web API

.NET8 Web API

A basic ASP.NET Core Web API template (.NET 8)


Dango