remove TWILIO env vars

This commit is contained in:
Benjamin Palko 2025-01-09 22:20:13 -05:00
parent 6817bbd3d4
commit 26eb93dbab
2 changed files with 0 additions and 9 deletions

5
.env
View file

@ -1,10 +1,5 @@
NODE_ENV= NODE_ENV=
# TWILIO
TWILIO_ACCOUNT_SID=secret_do_not_commit_or_change_this_create_.env.local_instead
TWILIO_AUTH_TOKEN=secret_do_not_commit_or_change_this_create_.env.local_instead
TWILIO_PHONE_NUMBER=secret_do_not_commit_or_change_this_create_.env.local_instead
# SECRETS # SECRETS
SECRETS_PASSWORD=secret_do_not_commit_or_change_this_create_.env.local_instead SECRETS_PASSWORD=secret_do_not_commit_or_change_this_create_.env.local_instead
SECRETS_SALT=secret_do_not_commit_or_change_this_create_.env.local_instead SECRETS_SALT=secret_do_not_commit_or_change_this_create_.env.local_instead

View file

@ -1,12 +1,8 @@
import { z } from 'zod'; import { z } from 'zod';
import { PhoneRegex } from '../src/lib/regex/phone';
const ValidateEnvironment = () => { const ValidateEnvironment = () => {
const { success, error } = z const { success, error } = z
.object({ .object({
TWILIO_ACCOUNT_SID: z.string().min(1),
TWILIO_AUTH_TOKEN: z.string().min(1),
TWILIO_PHONE_NUMBER: z.string().regex(PhoneRegex),
SECRETS_PASSWORD: z.string().length(32), SECRETS_PASSWORD: z.string().length(32),
SECRETS_SALT: z.string().min(16), SECRETS_SALT: z.string().min(16),
SECRETS_IV_POSITION: z.string().transform((val, ctx) => { SECRETS_IV_POSITION: z.string().transform((val, ctx) => {