Website — Local Dev Setup
Prerequisites
- Node.js 22+ (see Local Dev Setup for Node installation)
- Git with SSH access to the
Sema-LinkGitHub org
1. Clone the Repo
sh
git clone git@github.com:Sema-Link/semalink-website.git
cd semalink-website2. Install Dependencies
sh
npm install3. Start the Dev Server
sh
npm run devThe site will be available at http://localhost:5173. The dev server runs in SPA mode (not SSG) — pages render client-side. This is fine for development; the production build pre-renders everything to static HTML.
Available Scripts
| Command | Description |
|---|---|
npm run dev | Start local dev server with hot reload (SPA mode) |
npm run build | Build the site using vite-ssg — pre-renders all routes to static HTML in dist/ |
npm run preview | Preview the production build locally at http://localhost:4173 |
Previewing the Production Build
To see the exact output that gets deployed (static HTML, no JavaScript rendering):
sh
npm run build
npm run previewThis is useful for checking SSG output, verifying SEO meta tags, and catching any issues that only appear in the static build.