This repository contains a freshly initialized Next.js application.
Install dependencies and start the dev server:
npm install
npm run devThe /contact form now sends directly to EmailJS from the browser and then
redirects to /thank-you on success.
Add these variables to your local .env.local and your deployment environment:
NEXT_PUBLIC_EMAILJS_SERVICE_ID=your_service_id
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=your_template_id
NEXT_PUBLIC_EMAILJS_PUBLIC_KEY=your_public_keyImportant: Next.js does not load
.local.env. Use.env.localand restartnpm run devafter changing environment variables.
Keep the existing field names in your EmailJS template mapping:
contact_namecontact_emailcompany_nameproject_scopecontact_source
Run ESLint:
npm run lintFormat the codebase with Prettier:
npm run format