Update alt text in PhotosModal and add WEB_URL clarification comment

This commit is contained in:
MartinBraquet
2026-04-02 15:48:26 +02:00
parent 2019c835a0
commit 0b721ec7b9
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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'}
/>
<ShareProfileButtons