Skip to content

feat(frontend): add env-based API URL and contract ID configuration (#125)#134

Open
D2758695161 wants to merge 1 commit intoFinesseStudioLab:mainfrom
D2758695161:feat/env-based-config
Open

feat(frontend): add env-based API URL and contract ID configuration (#125)#134
D2758695161 wants to merge 1 commit intoFinesseStudioLab:mainfrom
D2758695161:feat/env-based-config

Conversation

@D2758695161
Copy link
Copy Markdown

Summary

Adds environment-based API URL configuration for frontend. Configures dev/staging/prod Soroban RPC endpoints, Horizon URLs, and contract IDs via environment variables.

Changes

frontend/src/config.js (new)

  • VITE_ENV preset system with dev/staging/prod configurations
  • Network-specific Soroban RPC endpoints
  • Network-specific contract IDs
  • Fallback defaults for each environment

frontend/.env.example

  • Complete env var documentation

frontend/src/stellar.js

  • Updated to import network config from config.js

Payment Address

0xaae0101ac77a2e4e0ea826eb4d309374f029b0a6

…loses FinesseStudioLab#125)

- Add src/config.js with structured environment presets (dev/staging/prod)
- Each preset provides sensible defaults for SOROBAN_RPC_URL, HORIZON_URL,
  NETWORK_PASSPHRASE, REWARDS_CONTRACT_ID, CAMPAIGN_CONTRACT_ID, and API_URL
- Individual VITE_* variables still override any preset value
- Add .env.example documenting all available environment variables
- Update stellar.js to import resolved config values from config.js
- Set VITE_ENV=development as the default preset
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

@D2758695161 is attempting to deploy a commit to the joelpeace48-cell's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant