Overview
Info Crypto is a Vite single-page application (SPA). The production build compiles all assets into adist/ directory, which can be served by any static hosting provider.
The live demo is deployed on Netlify:
https://info-cripto.netlify.app/
Building for production
Run the build command to generate the production bundle:dist/ directory. You can verify the build locally before deploying:
dist/ output at http://localhost:4173.
Netlify
Configure build settings in Netlify
In your Netlify site settings, set the following build configuration:
If you connect Netlify to the GitHub repository, Netlify will run the build automatically on every push to the main branch.
| Setting | Value |
|---|---|
| Build command | npm run build |
| Publish directory | dist |
Add the SPA redirect rule
Create a This tells Netlify to serve
netlify.toml file at the root of the repository with the following content:netlify.toml
index.html for every request, allowing React Router to handle the routing on the client side.netlify.toml reference
A minimalnetlify.toml for this project:
netlify.toml
Other hosting options
- Vercel
- GitHub Pages
- Self-hosted
Vercel detects Vite projects automatically and sets the correct build command and output directory.
- Import the repository from GitHub in the Vercel dashboard.
- Vercel sets
npm run buildanddistby default — no changes needed. - Add a
vercel.jsonfile for the SPA redirect:
vercel.json