Skip to content

Commit a68775d

Browse files
Remove api-serverless directory and use existing Gmail email infrastructure
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
1 parent 66829d9 commit a68775d

19 files changed

+64
-2921
lines changed

.github/workflows/nextjs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
#
33
# FEATURES:
44
# ✅ All public-facing pages (Home, Events, Gallery, Live, Travel, Contact, RSVP)
5-
# ✅ Working contact and RSVP forms (using Gmail via serverless API)
5+
# ✅ Working contact and RSVP forms (using Web3Forms API)
66
# ✅ All images and static assets
77
# ✅ Responsive design and mobile-friendly
88
#
99
# SETUP REQUIRED:
10-
# 1. Deploy the serverless email API to Vercel (see api-serverless/README.md)
11-
# 2. Add serverless API URL as repository secret: EMAIL_API_URL
12-
# 3. Add Gmail credentials as repository secrets (for the serverless API):
10+
# 1. Get free Web3Forms API key from https://web3forms.com
11+
# 2. Add as repository secret: WEB3FORMS_ACCESS_KEY
12+
# 3. Add Gmail credentials as repository secrets:
1313
# - GMAIL_USER: Gmail email address
1414
# - GMAIL_APP_PASSWORD: Gmail app password (not regular password)
1515
# - GMAIL_FROM: Display name for emails (e.g., "Wedding <email@domain.com>")
@@ -126,12 +126,13 @@ jobs:
126126
CLOUDINARY_API_KEY=""
127127
CLOUDINARY_API_SECRET=""
128128
129-
# Serverless Email API URL (deployed on Vercel)
130-
# This is used by the static site to send emails via Gmail
131-
NEXT_PUBLIC_EMAIL_API_URL="${{ secrets.EMAIL_API_URL }}"
129+
# Web3Forms for static form submissions
130+
# Get your free access key at https://web3forms.com
131+
# Add as repository secret: WEB3FORMS_ACCESS_KEY
132+
NEXT_PUBLIC_WEB3FORMS_KEY="${{ secrets.WEB3FORMS_ACCESS_KEY }}"
132133
EOF
133134
echo "Environment file created"
134-
echo "Email API URL configured: ${{ secrets.EMAIL_API_URL != '' && 'Yes' || 'No (using default)' }}"
135+
echo "Web3Forms key configured: ${{ secrets.WEB3FORMS_ACCESS_KEY != '' && 'Yes' || 'No (using fallback)' }}"
135136
- name: Generate Prisma client
136137
working-directory: ./client
137138
run: npx prisma generate

0 commit comments

Comments
 (0)