Custom website for Rethread, a Lithuanian mail-in clothing repair service.
- Production: https://rethread.lt
- Development: https://dev.rethread.lt
- Vite + TypeScript SPA
- Hand-written DOM helpers and router
- CSS variables with scoped component styles
- Cloudflare Pages + Pages Functions
- Resend order email endpoint
npm install
npx playwright install chromium # one-time browser setup for tests
npm run dev
npm test
npm run check
npm run pages:dev- Main copy:
src/i18n/strings.ts - Fixed service prices:
shared/pricing-data.json - Legal/shipping pages:
src/pages/legal.ts - Journal posts:
src/content/journal/*.md - Order Function:
functions/api/order.ts
Cloudflare Pages builds dist with npm run build.
devbranch deploys to https://dev.rethread.ltmainbranch deploys to https://rethread.lt- Pull requests and feature branches run checks only
GitHub Actions requires these repository secrets:
CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN
VITE_TURNSTILE_SITE_KEYCloudflare Pages environment variables:
RESEND_API_KEY
ORDER_TO_EMAIL
ORDER_FROM_EMAIL
TURNSTILE_SECRET_KEY