Skip to content

Commit

Permalink
Fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Dec 23, 2023
1 parent e6e0af6 commit b75ed2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/env/env-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof envSchema>;
2 changes: 1 addition & 1 deletion functions/server-bot/on-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion functions/server-bot/on-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
});
};

0 comments on commit b75ed2a

Please sign in to comment.