Skip to content

Configuration Overview

Velocity uses a centralized configuration approach with TypeScript for type safety.

Site Config

src/config/site.config.ts — Site metadata, branding, contact info, and social links.

Routes

src/config/routes.ts — Type-safe route definitions and navigation structure.

Environment

.env — Environment variables for different deployment contexts.

The most common configurations you’ll change:

src/config/site.config.ts
const siteConfig = {
name: 'Your Site Name',
description: 'Your site description',
url: import.meta.env.SITE_URL,
author: 'Your Name',
email: 'hello@yoursite.com',
};
src/config/routes.ts
export const routes = {
home: { path: '/', nav: { show: false, order: 0, label: 'Home' } },
about: { path: '/about', nav: { show: true, order: 1, label: 'About' } },
blog: { path: '/blog', nav: { show: true, order: 2, label: 'Blog' } },
contact: { path: '/contact', nav: { show: true, order: 3, label: 'Contact' } },
};
.env
SITE_URL=https://yoursite.com
PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX