Skip to content

Fix PROVIDER_URL not being read from e2e/.env#28

Merged
AquiGorka merged 2 commits intomainfrom
fix/e2e-env-and-sac-deploy
Mar 20, 2026
Merged

Fix PROVIDER_URL not being read from e2e/.env#28
AquiGorka merged 2 commits intomainfrom
fix/e2e-env-and-sac-deploy

Conversation

@AquiGorka
Copy link
Copy Markdown
Contributor

Summary

  • providerUrl in config.ts was only read from process env vars, not from the .env file map
  • The PROVIDER_URL written by up.sh to e2e/.env was silently ignored, falling back to port 3000

Test plan

  • Run cd e2e && deno task e2e — should connect to port 3010, not 3000

up.sh now writes contract IDs, provider URL, and keys to e2e/.env so
the E2E test works without knowing the provider-platform repo path.
This fixes E2E on machines using non-default repo locations (BASE_DIR).

Also fixed SAC deploy failing under set -e when the contract already
exists on a persistent Stellar network.
providerUrl was only checked from Deno.env (process env), not from
the merged env map. The PROVIDER_URL written by up.sh to e2e/.env
was silently ignored, falling back to port 3000.
@AquiGorka AquiGorka merged commit 9691862 into main Mar 20, 2026
1 check passed
@AquiGorka AquiGorka deleted the fix/e2e-env-and-sac-deploy branch March 20, 2026 18:29
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