41 create tenant twilio config #62

Merged
BenjaminPalko merged 20 commits from 41-create-tenant-twilio-config into master 2025-01-26 23:36:06 -05:00
2 changed files with 0 additions and 9 deletions
Showing only changes of commit 26eb93dbab - Show all commits

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) => {