Skip to content

puthranankit/samplereact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title description tags
Vite + React
The default Vite + React starter, utilizing `serve` to serve the built app
node
vite
react

Vite + React + Serve

This is a Vite + React starter that uses serve.

Deploy on Railway

✨ Features

  • Vite + React
  • Serve

💁‍♀️ How to use

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

❓ Why use serve

By default Railway will use the start script defined in package.json to run your app, the default Vite + React starter project does not come with any start script, so I have added serve as the start script, there are many benefits to using serve over just running the vite command.

  • serve is more suited to run single page apps
  • Uses less ram than vite or vite preview (<100mb)
  • Far more performant and stable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published