-
Notifications
You must be signed in to change notification settings - Fork 573
Open
Labels
Description
What is the feature about
Currently, the STATUS_PAGE
URL is hardcoded in the IndexingStatus
component. To improve flexibility and allow easier environment-specific customization (e.g., for staging, self-hosted deployments, or whitelabelled environments), it would be beneficial to move this constant to the central constants.ts
configuration file and make it loadable via environment variables, with a fallback to the default https://status.safe.global
.
The list of requirements
- Move
const STATUS_PAGE
fromapps/web/src/components/sidebar/IndexingStatus/index.tsx
toapps/web/src/config/constants.ts
. - Load the value of
STATUS_PAGE
from an environment variable (e.g.,NEXT_PUBLIC_SAFE_STATUS_PAGE_URL
). - Fallback to
https://status.safe.global
if the environment variable is not defined.
Designs/sketches
N/A — this is a config/code-only change.
Links
- Reference to current hardcoded constant: https://github.com/safe-global/safe-wallet-monorepo/blob/dev/apps/web/src/components/sidebar/IndexingStatus/index.tsx#L9
- Suggested destination for config: https://github.com/safe-global/safe-wallet-monorepo/blob/dev/apps/web/src/config/constants.ts