Fix send-auth-otp: Remove notification_logs references

- Remove notification_logs table references (table doesn't exist)
- This was causing the function to crash after sending email
- Now the function should complete successfully
- Added better email payload logging
- Keep .env file for local development
This commit is contained in:
dwindown
2026-01-02 15:07:41 +07:00
parent fa1adcf291
commit 08e56a22d8
8 changed files with 421 additions and 31 deletions

8
.env Normal file
View File

@@ -0,0 +1,8 @@
SITE_URL=https://with.dwindi.com/
VITE_APP_ENV=production
VITE_GOOGLE_CLIENT_ID=650232746742-nup9nrp27001n0c6a3vqlc156g4tqfqa.apps.googleusercontent.com
VITE_PAKASIR_API_KEY=iP13osgh7lAzWWIPsj7TbW5M3iGEAQMo
VITE_PAKASIR_PROJECT_SLUG=withdwindi
VITE_SUPABASE_ANON_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTc2NjAzNzEyMCwiZXhwIjo0OTIxNzEwNzIwLCJyb2xlIjoiYW5vbiJ9.Sa-eECy9dgBUQy3O4X5X-3tDPmF01J5zeT-Qtb-koYc
VITE_SUPABASE_EDGE_URL=https://lovable.backoffice.biz.id/functions/v1
VITE_SUPABASE_URL=https://lovable.backoffice.biz.id/