Skip to content

[Bug] frontend/src/types/env.d.ts still declares Vite's ImportMetaEnv/VITE_* types #511

Description

@Dev-AdeTutu

Verified against source in the session that drafted this issue (not just inferred).

Describe the Bug
The type declaration file documents VITE_CONTRACT_ID, VITE_BACKEND_URL, VITE_NETWORK_PASSPHRASE, VITE_SMS_SHORTCODE, VITE_SMS_WEBHOOK_DOCS, VITE_API_URL, VITE_RPC_URL as the env contract for this app — none of which are read correctly at runtime (root cause of #5#9).

Steps to Reproduce

  1. Open frontend/src/types/env.d.ts.
  2. Compare against actual process.env.NEXT_PUBLIC_* reads across the codebase (contract.ts, fetchWithTimeout.ts, dashboard pages, etc.) — they don't match.

Expected Behavior
Type declarations match the real env contract and give contributors/IDE autocomplete correct guidance.

Actual Behavior
Actively misleading — this file is likely why #5#9 exist, since it presents VITE_* as the correct pattern.

Guidelines

Definition of Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programbugSomething isn't workingdocumentationImprovements or additions to documentationfrontend

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions