GitXplorerGitXplorer
i

vite-rail

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
10068866dd2ff3779870d46f55395573fe7d6f73

Initial Commit

rrailway-bot committed 10 months ago

README

The README file for this repository.

title: Vite + React description: The default Vite + React starter, utilizing Caddy to serve the built app tags:

  • node
  • vite
  • react

Vite + React + Caddy

This is a Vite + React starter that uses Caddy.

Deploy on Railway

✨ Features

💁‍♀️ How to use

  • Install required dependencies with npm install
  • Start the server for local development npm run dev

❓ 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 React, and to also gzip the responses

Relevant Caddy documentation: