41 create tenant twilio config #62
2 changed files with 0 additions and 9 deletions
5
.env
5
.env
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue