Post-Scaffold Configuration
After scaffolding, configure your project for production.
Environment Variables
Section titled “Environment Variables”Create a .env file with your configuration:
# Required for productionSITE_URL=https://your-domain.com
# Analytics (optional)PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXXPUBLIC_GTM_ID=GTM-XXXXXXX
# Site Verification (optional)GOOGLE_SITE_VERIFICATION=your-verification-codeBING_SITE_VERIFICATION=your-verification-codeSite Configuration
Section titled “Site Configuration”Edit src/config/site.config.ts to customize your site:
const siteConfig: SiteConfig = { name: 'Your Site Name', description: 'Your site description', url: 'https://your-domain.com', author: 'Your Name', email: 'hello@example.com', phone: '+1 (555) 123-4567',
address: { street: '123 Main St', city: 'Dallas', state: 'TX', zip: '75001', country: 'US', },
socialLinks: [ 'https://github.com/yourname', 'https://twitter.com/yourname', ],
branding: { logo: { alt: 'Your Logo' }, favicon: { svg: '/favicon.svg' }, colors: { themeColor: '#F94C10', backgroundColor: '#ffffff', }, },};Branding Files
Section titled “Branding Files”Replace these files with your own branding:
-
Favicon
Replace
public/favicon.svgwith your icon. -
Logos
Replace files in
src/assets/branding/:logomark.svg— Icon for light backgroundslogomark-dark.svg— Icon for dark backgroundslogo-full.svg— Full logo for light backgroundslogo-full-dark.svg— Full logo for dark backgrounds
-
Theme Color
Update
themeColorinsite.config.tsto match your brand.
Header Configuration
Section titled “Header Configuration”Configure the header in your layouts:
<Header layout="default" <!-- default | centered | minimal --> position="sticky" <!-- fixed | sticky | static --> size="md" <!-- sm | md | lg --> variant="default" <!-- default | solid | transparent --> colorScheme="default" <!-- default | invert --> showCta={true} showThemeToggle={true} showLanguageSwitcher={true} <!-- i18n only -->/>Footer Configuration
Section titled “Footer Configuration”Configure the footer in your layouts:
<Footer layout="simple" <!-- simple | columns | minimal | stacked --> background="default" <!-- default | secondary | invert --> columns={3} <!-- 2 | 3 | 4 (columns layout only) --> showSocial={true} showCopyright={true} socialLinks={[{ platform: 'github', href: '...' }]} legalLinks={[{ label: 'Privacy', href: '/privacy' }]}/>Development Commands
Section titled “Development Commands”After configuration, run:
# Start development servernpm run dev # localhost:4321
# Build for productionnpm run build
# Preview production buildnpm run preview
# Type checkingnpm run check
# Lintingnpm run lintDeployment
Section titled “Deployment”Velocity includes ready-to-use configurations for:
| Platform | Configuration |
|---|---|
| Vercel | Zero-config, auto-detected |
| Netlify | netlify.toml included |
| Cloudflare Pages | SSR-ready with adapter |
See Deployment for detailed instructions.