From 0b721ec7b97c4c7175d9c606ad884a15fb9106fe Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 2 Apr 2026 15:48:26 +0200 Subject: [PATCH] Update alt text in PhotosModal and add WEB_URL clarification comment --- common/src/envs/constants.ts | 6 +++++- web/components/photos-modal.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/envs/constants.ts b/common/src/envs/constants.ts index 8e40a22b..a9ccfb68 100644 --- a/common/src/envs/constants.ts +++ b/common/src/envs/constants.ts @@ -55,7 +55,11 @@ export const LOCAL_BACKEND_DOMAIN = `${IS_WEBVIEW_DEV_PHONE ? '192.168.1.3' : IS export const DOMAIN = IS_LOCAL ? LOCAL_WEB_DOMAIN : ENV_CONFIG.domain export const DEPLOYED_WEB_URL = `https://www.${ENV_CONFIG.domain}` -export const WEB_URL = IS_LOCAL ? `http://${LOCAL_WEB_DOMAIN}` : `https://www.${DOMAIN}` + +// Careful: buildOgUrl uses WEB_URL and works only on https://www.compassmeet.com (not https://compassmeet.com) +// x-vercel-error: INVALID_IMAGE_OPTIMIZE_REQUEST. Could work if needed though with some Vercel tweak +export const WEB_URL = IS_LOCAL ? `http://${LOCAL_WEB_DOMAIN}` : `https://${DOMAIN}` + export const BACKEND_DOMAIN = IS_LOCAL ? LOCAL_BACKEND_DOMAIN : ENV_CONFIG.backendDomain export const FIREBASE_CONFIG = ENV_CONFIG.firebaseConfig export const PROJECT_ID = ENV_CONFIG.firebaseConfig.projectId diff --git a/web/components/photos-modal.tsx b/web/components/photos-modal.tsx index f46da746..81ad03af 100644 --- a/web/components/photos-modal.tsx +++ b/web/components/photos-modal.tsx @@ -85,7 +85,7 @@ export const ViewProfileCardButton = (props: { src={src} width={width} height={height} - alt={t('profile_card.loading', 'Loading your card, it may take a few seconds...')} + alt={t('profile_card.loading', `${user.username}'s profile card`)} className={'rounded-2xl'} />