add whatsapp modules
This commit is contained in:
@@ -52,5 +52,18 @@ export const _env = z
|
||||
.min(0, "Min 0."),
|
||||
MAIL_USERNAME: z.string("Must be string.").nonempty("Must not empty."),
|
||||
MAIL_PASSWORD: z.string("Must be string.").nonempty("Must not empty."),
|
||||
|
||||
WHATSAPP_BUSINESS_ACCESS_TOKEN: z
|
||||
.string("Must be string.")
|
||||
.nonempty("Must not empty."),
|
||||
WHATSAPP_BUSINESS_PHONE_NUMBER_ID: z
|
||||
.string("Must be string.")
|
||||
.nonempty("Must not empty."),
|
||||
WHATSAPP_BUSINESS_ACCOUNT_ID: z
|
||||
.string("Must be string.")
|
||||
.nonempty("Must not empty."),
|
||||
WHATSAPP_BUSINESS_WEBHOOK_VERIFY_TOKEN: z
|
||||
.string("Must be string.")
|
||||
.nonempty("Must not empty."),
|
||||
})
|
||||
.parse(Bun.env);
|
||||
|
||||
8
src/configs/whatsapp-business.config.ts
Normal file
8
src/configs/whatsapp-business.config.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { _env } from "@/configs/_env";
|
||||
|
||||
export const whatsAppBusinessConfig = {
|
||||
accessToken: _env.WHATSAPP_BUSINESS_ACCESS_TOKEN,
|
||||
phoneNumberId: _env.WHATSAPP_BUSINESS_PHONE_NUMBER_ID,
|
||||
accountId: _env.WHATSAPP_BUSINESS_ACCOUNT_ID,
|
||||
webhookVerifyToken: _env.WHATSAPP_BUSINESS_WEBHOOK_VERIFY_TOKEN,
|
||||
} as const;
|
||||
Reference in New Issue
Block a user