Skip to content

Make STATUS_PAGE configurable via environment variables #6140

@ElvisKrop

Description

@ElvisKrop

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 from apps/web/src/components/sidebar/IndexingStatus/index.tsx to apps/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions