From b75ed2ab012ccf323ccbc1dc312029570980e105 Mon Sep 17 00:00:00 2001 From: Gorbachev Egor <7gorbachevm@gmail.com> Date: Sat, 23 Dec 2023 16:15:58 +0700 Subject: [PATCH] Fix env --- functions/env/env-schema.ts | 2 +- functions/server-bot/on-message.ts | 2 +- functions/server-bot/on-start.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/env/env-schema.ts b/functions/env/env-schema.ts index 8dadcf67..f40c54b6 100644 --- a/functions/env/env-schema.ts +++ b/functions/env/env-schema.ts @@ -6,7 +6,7 @@ export const envSchema = z.object({ SUPABASE_URL: z.string(), BOT_ERROR_REPORTING_TOKEN: z.string().optional(), BOT_ERROR_REPORTING_USER_ID: z.string().optional(), - BOT_APP_URL_PLAIN: z.string(), + VITE_BOT_APP_URL: z.string(), }); export type EnvSafe = z.infer; diff --git a/functions/server-bot/on-message.ts b/functions/server-bot/on-message.ts index acf7ba1b..6bf63b59 100644 --- a/functions/server-bot/on-message.ts +++ b/functions/server-bot/on-message.ts @@ -46,7 +46,7 @@ export const onMessage = (envSafe: EnvSafe) => async (ctx: Context) => { await ctx.reply(translator.translate("no_decks_created"), { reply_markup: new InlineKeyboard().url( translator.translate("create_deck"), - envSafe.BOT_APP_URL_PLAIN, + envSafe.VITE_BOT_APP_URL, ), }); return; diff --git a/functions/server-bot/on-start.ts b/functions/server-bot/on-start.ts index 79c165e8..cf5bdf3c 100644 --- a/functions/server-bot/on-start.ts +++ b/functions/server-bot/on-start.ts @@ -9,7 +9,7 @@ export const onStart = (envSafe: EnvSafe) => async (ctx: Context) => { return ctx.reply(translator.translate("start"), { reply_markup: new InlineKeyboard().url( translator.translate("start_button"), - envSafe.BOT_APP_URL_PLAIN, + envSafe.VITE_BOT_APP_URL, ), }); };