Overview
Latch uses TypeScript configuration files located in theconfig/ folder to manage all content and settings. This approach provides type safety, better IDE support, and easier maintenance compared to JSON or environment variables.
All configuration files are in TypeScript format (
.ts) and located in the config/ directoryQuick Start
Configuration Categories
Brand & Identity
Branding
Company name, logo, colors, navigation, and footerFile:
config/branding.tsSEO & Meta
Site title, description, Open Graph, and meta tagsFile:
config/seo.tsCurrency
Currency symbol, code, and positionFile:
config/shared/currency.tsSale Banner
Promotional banner at the top of your siteFile:
config/promotions/sale-banner.tsContent Pages
Homepage
Hero section, features, and homepage contentFile:
config/home.tsAbout Page
Company information and missionFile:
config/pages/about.tsContact Page
Contact form and support informationFile:
config/pages/contact.tsJobs Page
Career opportunities and job listingsFile:
config/pages/jobs.tsHosting Products
VPS Hosting
VPS plans and specificationsFile:
config/hosting/vps.tsDedicated Servers
Dedicated server configurationsFile:
config/hosting/dedicated.tsWeb Hosting
Shared and managed hostingFile:
config/hosting/web-hosting.tsGame Server Hosting
Games Listing
All available game serversFile:
config/games/index.tsIndividual Games
Specific game configurationsFile:
config/games/[gamename].tsSupport & Information
Knowledgebase
Help articles and documentationFiles:
config/knowledgebase/FAQ
Frequently asked questionsFile:
config/faq.tsTestimonials
Customer reviews and feedbackFile:
config/testimonials.tsChangelogs
Version history and updatesFile:
config/changelogs.tsTechnical Specs
Hardware Specs
Server specifications and componentsFile:
config/hardware.tsPartners
Partner integrations and affiliatesFile:
config/pages/partners.tsLegal Pages
Privacy Policy
Privacy policy contentFile:
config/legal/privacy.tsTerms of Service
Terms and conditionsFile:
config/legal/terms.tsConfiguration File Structure
All configuration files follow a similar pattern:- TypeScript Benefits
- Best Practices
- Type Safety: Catch errors before runtime
- IntelliSense: Auto-completion in your IDE
- Documentation: Inline type hints
- Refactoring: Easy to update across files
Quick Reference Table
| What to Change | File Path | Documentation |
|---|---|---|
| Company name & logo | config/branding.ts | Branding |
| Brand colors | config/branding.ts | Branding |
| Navigation menu | config/branding.ts → navbarConfig | Branding |
| Footer links | config/branding.ts → footerConfig | Branding |
| SEO & Meta tags | config/seo.ts | SEO |
| Homepage content | config/home.ts | Home |
| Customer reviews | config/testimonials.ts | Testimonials |
| FAQ questions | config/faq.ts | FAQ |
| Changelogs | config/changelogs.ts | Changelogs |
| Hardware specs | config/hardware.ts | Hardware |
| About page | config/pages/about.ts | About |
| Contact page | config/pages/contact.ts | Contact |
| Jobs page | config/pages/jobs.ts | Jobs |
| Games listing | config/games/index.ts | Games |
| Game pages | config/games/[gamename].ts | Game Pages |
| VPS hosting | config/hosting/vps.ts | VPS |
| Dedicated servers | config/hosting/dedicated.ts | Dedicated |
| Web hosting | config/hosting/web-hosting.ts | Web Hosting |
| Partners page | config/pages/partners.ts | Partners |
| Knowledgebase | config/knowledgebase/index.ts | KB |
| KB articles | config/knowledgebase/articles/ | KB |
| Sale banner | config/promotions/sale-banner.ts | Banner |
| Currency settings | config/shared/currency.ts | Currency |
| Privacy policy | config/legal/privacy.ts | Legal |
| Terms of service | config/legal/terms.ts | Legal |

