Website Development
This document covers development of the caro.sh marketing website built with Astro.
Project Location
Section titled “Project Location”The website source is in the website/ directory of the monorepo.
Tech Stack
Section titled “Tech Stack”- Framework: Astro v4
- Styling: Scoped CSS in Astro components
- Deployment: Vercel (static site generation)
- Analytics: Vercel Analytics
Analytics
Section titled “Analytics”The website uses Vercel Analytics for privacy-friendly traffic monitoring.
In src/layouts/Layout.astro:
---import Analytics from '@vercel/analytics/astro';---
<body> <slot /> <Analytics /></body>Features
Section titled “Features”- Privacy-first: No cookies, GDPR compliant by default
- Automatic tracking: Page views tracked without additional configuration
- Web Vitals: Core Web Vitals automatically collected
- Real-time: View live traffic in Vercel dashboard
Viewing Analytics
Section titled “Viewing Analytics”- Go to your Vercel dashboard
- Select the caro website project
- Click the “Analytics” tab
Local Development
Section titled “Local Development”# Navigate to website directorycd website
# Install dependenciesnpm install
# Start dev servernpm run devVisit http://localhost:4321 to see the site.
Building
Section titled “Building”# Production buildnpm run build
# Preview production buildnpm run previewDeployment
Section titled “Deployment”The website auto-deploys to Vercel on push to main. Preview deployments are created for all pull requests.
Custom Domain
Section titled “Custom Domain”The production site is available at caro.sh.