Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dev-nexus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Dev Nexus is a fully static single-page application (SPA) built with Vite and React Router v6. It uses hash-based routing — every URL is in the formhttps://yourdomain.com/#/route — which means the browser never sends the route path to the server. Every request resolves to the same index.html, and React Router handles the rest in-browser.
This architecture has one major deployment benefit: no server-side routing configuration is required. There are no rewrite rules, no try_files directives, and no special server config needed on any static host.
Build Commands
Build the project for production with Vite’s standard output pipeline:dist/ directory. The output includes:
dist/index.html— the SPA entry point with a hash redirect scriptdist/pages/*.html— per-route static shells (e.g.,About.html,Projects.html), each withwindow.__STATIC_PAGE_ROUTE__set and a redirect to the corresponding#/routedist/assets/main.js— all bundled React app codedist/assets/main.css— all Tailwind-compiled CSSdist/.nojekyll— GitHub Pages compatibility marker
dist/ on a local port so you can verify the built output exactly as it will behave on a static host.
Deployment Targets
- GitHub Pages
- Vercel
- Netlify
- Self-hosted / CDN
GitHub Pages
The repo already includes a.nojekyll file in the built output, which is required for GitHub Pages to serve assets correctly (see The .nojekyll File below).Option 1 — Deploy the dist/ folder directly- Run
npm run buildto generatedist/. - Set your GitHub Pages source to the
dist/folder (via repository Settings → Pages → Source). - Push your changes. GitHub Pages will serve
dist/index.htmlfor all requests.
.github/workflows/deploy.yml:pages/*.html shells (e.g., About.html, Projects.html) allow visitors to access routes directly. For example:.html file and then the hash redirect takes over.Environment Variables
The current Dev Nexus build has no required environment variables — all content is hardcoded in the React components and the site works offline with no external API calls. If you want to add analytics, contact form endpoints, or API keys in the future, create a.env file at the project root. Vite only exposes variables prefixed with VITE_ to client-side code:
import.meta.env:
Never put secret keys (API tokens, private credentials) in
VITE_-prefixed variables. Because Vite inlines them into the client bundle at build time, they are visible to anyone who inspects dist/assets/main.js.The .nojekyll File
The
.nojekyll file is already present in the built output of this repo. You do not need to create it manually.GitHub Pages runs a Jekyll build pipeline by default. Jekyll ignores any file or directory whose name starts with an underscore (_). Vite outputs assets to dist/assets/ — not an underscore directory — so this is not a problem here. However, the .nojekyll file is kept as a safeguard: it signals to GitHub Pages to skip the Jekyll pipeline entirely and serve the directory contents as-is. This prevents any future asset naming changes from causing silent 404 errors, and it marginally speeds up deployments since the Jekyll step is skipped.