Add Lemon Squeezy environment variable schema validation and removed NODE_ENV from production variables, as it causes issues in Vercel

- Implement `getLemonSqueezyEnv` function to validate required environment variables for Lemon Squeezy integration using `zod`.
- Ensure `LEMON_SQUEEZY_SECRET_KEY`, `LEMON_SQUEEZY_SIGNING_SECRET`, and `LEMON_SQUEEZY_STORE_ID` are present and valid.
This commit is contained in:
gbuomprisco
2024-09-05 15:36:11 +02:00
parent 3e1c12fcbb
commit 117602ac5e
2 changed files with 21 additions and 6 deletions

View File

@@ -5,9 +5,6 @@
## AVOID PLACING SENSITIVE DATA IN THIS FILE.
## PUBLIC KEYS OR CONFIGURATION ARE OKAY TO BE PLACED HERE.
# NODE ENV
NODE_ENV=production
# SUPABASE
NEXT_PUBLIC_SUPABASE_URL=