Skip to content

Website — Local Dev Setup

Prerequisites

  • Node.js 22+ (see Local Dev Setup for Node installation)
  • Git with SSH access to the Sema-Link GitHub org

1. Clone the Repo

sh
git clone git@github.com:Sema-Link/semalink-website.git
cd semalink-website

2. Install Dependencies

sh
npm install

3. Start the Dev Server

sh
npm run dev

The 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

CommandDescription
npm run devStart local dev server with hot reload (SPA mode)
npm run buildBuild the site using vite-ssg — pre-renders all routes to static HTML in dist/
npm run previewPreview 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 preview

This is useful for checking SSG output, verifying SEO meta tags, and catching any issues that only appear in the static build.

Internal use only — Sema Link Engineering