Retro Webpage is a fully static site — Vite compiles the React source into plain HTML, CSS, and JavaScript files that can be hosted anywhere a web server can serve files. There is no backend, no Node.js runtime required in production, and no database to configure. This guide walks through building the project and deploying it to the three most popular static hosts: GitHub Pages, Netlify, and Vercel.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retro-webpage/llms.txt
Use this file to discover all available pages before exploring further.
Build the Project
Before deploying, you need to produce the production bundle. Vite compiles, minifies, and fingerprints all assets into adist/ directory.
dist/ folder at http://localhost:4173 and behaves identically to a production static host.
Deploy to GitHub Pages
GitHub Pages serves the contents of a branch or folder directly as a static site. The repository already includes a.nojekyll file at the root, which tells GitHub Pages to skip its Jekyll build pipeline and serve your files as-is.
Configure the GitHub Pages source
In your repository on GitHub, go to Settings → Pages. Under Build and deployment, set the source to GitHub Actions (recommended) or point it at the branch and folder that contains your built files.
Deploy using GitHub Actions (recommended)
Create a workflow file at
.github/workflows/deploy.yml to automate builds on every push:Deploy to Netlify
Netlify can build and deploy your site automatically from a Git repository or from a manual file upload.Connect your repository
Log in to app.netlify.com and click Add new site → Import an existing project. Select your Git provider and choose the repository.
Configure the build settings
Netlify will usually detect the Vite framework automatically. Confirm or set these values manually:
| Setting | Value |
|---|---|
| Build command | npm run build |
| Publish directory | dist |
| Node version | 20 (set in Environment variables as NODE_VERSION) |
Deploy the site
Click Deploy site. Netlify runs the build command, uploads the
dist/ output to its CDN, and provides a live URL in the format https://<random-slug>.netlify.app.Deploy to Vercel
Vercel’s zero-configuration deployment works seamlessly with Vite projects.Import your project
Log in to vercel.com and click Add New → Project. Import the repository from your Git provider.
Confirm the framework preset
Vercel auto-detects Vite and pre-fills the correct settings. Verify that the Framework Preset is set to Vite, the Build Command is
npm run build, and the Output Directory is dist.Because Retro Webpage uses HashRouter, all routing is handled entirely in the browser via the URL
# fragment. The server only ever needs to serve one file — index.html — regardless of which page the user navigates to. This means you do not need a _redirects file (Netlify), a vercel.json rewrite rule, or any other server-side catch-all configuration. The .nojekyll file already present in the repo is the only host-specific file needed for GitHub Pages.