diff --git a/DEPLOY-CHECKLIST.md b/DEPLOY-CHECKLIST.md new file mode 100644 index 0000000..3fab6e4 --- /dev/null +++ b/DEPLOY-CHECKLIST.md @@ -0,0 +1,201 @@ +# 🚀 Quick Deploy Checklist + +## Current Status +- ✅ Auth page registration works in production +- ✅ Email is being sent +- ❌ Email missing master template wrapper (needs deployment) + +## What You Need to Do + +### Step 1: Deploy Updated Edge Function (CRITICAL) + +The email is sending but without the master template. You need to deploy the updated `send-auth-otp` function. + +**Option A: If you have Supabase CLI access** +```bash +ssh root@lovable.backoffice.biz.id +cd /path/to/supabase +supabase functions deploy send-auth-otp +``` + +**Option B: Manual deployment** +```bash +ssh root@lovable.backoffice.biz.id + +# Find the edge functions directory +cd /path/to/supabase/functions + +# Backup current version +cp send-auth-otp/index.ts send-auth-otp/index.ts.backup + +# Copy new version from your local machine +# (On your local machine) +scp supabase/functions/send-auth-otp/index.ts root@lovable.backoffice.biz.id:/path/to/supabase/functions/send-auth-otp/ + +# Restart edge function container +docker restart $(docker ps -q --filter 'name=supabase_edge_runtime') +``` + +**Option C: Git pull + restart** +```bash +ssh root@lovable.backoffice.biz.id +cd /path/to/project +git pull origin main +cp supabase/functions/send-auth-otp/index.ts /path/to/supabase/functions/send-auth-otp/ +docker restart $(docker ps -q --filter 'name=supabase_edge_runtime') +``` + +### Step 2: Verify Deployment + +After deployment, test the registration: + +1. Go to https://with.dwindi.com/auth +2. Register with a NEW email address +3. Check your email inbox + +**Expected Result:** +- ✅ Email has black header with "ACCESS HUB" logo +- ✅ Email has proper brutalist styling +- ✅ OTP code is large and centered +- ✅ Email has footer with unsubscribe links + +### Step 3: Confirm Checkout Flow + +The checkout page already redirects to auth page for registration, so **no changes needed**. + +Verify: +1. Add product to cart +2. Go to checkout +3. If not logged in, redirects to `/auth` +4. Register new account +5. Receive OTP email with proper styling ✅ +6. Verify email +7. Login +8. Complete checkout + +## What Was Fixed + +### Before +```html + +
Halo {nama},
+| + ACCESS HUB | NOTIF #123456 + | +
|
+
+
+ 🔐 Verifikasi Email+Halo {nama}, +{otp_code}
+ |
+
| + ACCESS HUB + Email ini dikirim otomatis + Unsubscribe + | +