This is a Next.js project bootstrapped with create-next-app.
First, install dependencies:
npm installThen, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
Recruitment page content is controlled near the top of
src/app/recruitment/page.tsx.
Set isRecruitmentOpen: true to show the active recruitment state with the
form link, Apply Now button, and rectangular recruitment image.
Set isRecruitmentOpen: false to show the closed recruitment state with the
"Check back soon..." message and circular recruitment image.
The recruitment form URL and both recruitment image paths are configured in the
same recruitmentConfig object.
The Contact Us form sends messages through Resend using the /api/contact route.
The form does not open the user’s native email app. When a visitor submits the form, the website sends the message directly to the configured contact email address.
Create a .env.local file in the project root:
RESEND_API_KEY=
CONTACT_TO_EMAIL=contact@monashuas.org
CONTACT_FROM_EMAIL=onboarding@resend.devRESEND_API_KEY should be replaced with the real Resend API key.
Do not commit .env.local to GitHub.
At the moment, the contact form is configured to send using Resend’s test sender:
CONTACT_FROM_EMAIL=onboarding@resend.devThis is suitable for testing only.
For production, the sending domain should be verified in Resend and the sender should be changed to something like:
CONTACT_FROM_EMAIL="MUAS Website <website@monashuas.org>"To send from website@monashuas.org, the monashuas.org domain must be verified in Resend.
In Resend:
- Add the domain
monashuas.org. - Copy the DNS records Resend provides.
- Add those records in the domain’s DNS provider.
- Wait for Resend to verify the domain.
- Once verified, update
CONTACT_FROM_EMAILto use the MUAS domain.
Until the domain is verified, keep using:
CONTACT_FROM_EMAIL=onboarding@resend.devWhen deploying, add the same environment variables to the hosting provider, such as Vercel:
RESEND_API_KEY=
CONTACT_TO_EMAIL=contact@monashuas.org
CONTACT_FROM_EMAIL=After updating environment variables in production, redeploy the site.