Next.js site for pasindubandarigoda.com.
data/leads.json/admincp .env.example .env.local
# Edit .env.local with your Resend API key
npm install
npm run dev
Open http://localhost:3030. Admin dashboard: http://localhost:3030/admin.
| Variable | Purpose |
|---|---|
RESEND_API_KEY |
Resend API key for inquiry emails |
RESEND_FROM |
Verified sender address in Resend |
NOTIFY_EMAIL |
Where inquiry notifications are sent |
NEXT_PUBLIC_SITE_URL |
Production URL for emails and SEO |
Admin login at /admin uses a fixed username and password in lib/auth.ts.
Works on Vercel, Railway, Render, or any Node.js host.
Note: On serverless platforms (e.g. Vercel), the filesystem is ephemeral - use a persistent volume or mount data/leads.json via your host, or switch to a hosted database later.