y2k-web is a Vite + React project. The repository already ships with pre-built assets committed directly —Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/y2k-web/llms.txt
Use this file to discover all available pages before exploring further.
assets/main.js, assets/main.css, and the component chunks in components/ — so you can deploy the repo as-is without running a build step. If you have made source changes and need to regenerate those assets, this guide walks through the full build and preview workflow.
If you have not modified any source files, skip straight to the Deploying guide. The pre-built assets in the repository are ready to serve immediately.
Run the production build
Compile and bundle the project for production:Vite will tree-shake and minify React, Tailwind CSS, and Framer Motion into
dist/assets/main.js and dist/assets/main.css. It also copies index.html, the pages/ directory (static HTML pages), and the components/ directory into dist/ so the entire site is self-contained.Preview the production build locally
Before deploying, serve the This starts Vite’s preview server at http://localhost:4173, serving exactly the files that will be deployed — no dev-mode transforms applied.
dist/ folder locally to catch any issues:Verify all routes
While the preview server is running, navigate to each hash route to confirm the SPA is functioning correctly:
- http://localhost:4173/#/about
- http://localhost:4173/#/projects
- http://localhost:4173/#/blog
- http://localhost:4173/#/contact
Build output
Afternpm run build completes, the dist/ directory will contain the following structure:
pages/ directory contains seven static HTML stubs — one for each named page — that each bootstrap the SPA and redirect the hash router to the correct route. The components/ directory holds Primitives.js and Guestbook.js, which are referenced by <link rel="modulepreload"> in every page stub for faster load times.