You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
verify-env-validation.mjs never builds with NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC or a rejected URL scheme, only TESTNET and a malformed URL #417
scripts/verify-env-validation.mjs (closing #205's gap of never testing a real custom-URL build) still has two of its own analogous gaps:
NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC is never exercised. Every CASES entry that expects a successful build only ever sets NEXT_PUBLIC_STELLAR_NETWORK: "TESTNET":
"PUBLIC" is one of exactly two valid values (VALID_STELLAR_NETWORKS in src/lib/env.ts) and is the one that matters most — it's what a real production deploy would set — yet a regression that broke the build specifically for "PUBLIC" while leaving "TESTNET" working would pass this script undetected.
This script's entire purpose (per its own top comment) is proving env validation works "through a real next build, not just in isolation" — but two of the exact branches past issues (#204, and PUBLIC being the production-critical network value) were about aren't covered by that real-build guarantee, only by whatever unit-level coverage env.test.ts separately provides.
Suggested fix
Add two more CASES entries: { name: "valid NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC builds successfully", env: { NEXT_PUBLIC_STELLAR_NETWORK: "PUBLIC" }, expectSuccess: true } and a rejected-scheme case (NEXT_PUBLIC_API_URL: "javascript:alert(1)", expectSuccess: false, expectedMessageFragment: 'uses the "javascript:" scheme').
I can tackle verify-env-validation.mjs never builds with NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC or a rejected URL scheme, only TESTNET and a malformed URL. Proposed implementation roadmap:
Analysis: Inspect current behavior and edge cases in MergeFi/frontend
Core Implementation: Add comprehensive test coverage for verify-env-validation.mjs never builds with NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC or a rejected URL scheme, only TESTNET and a malformed URL verifying edge cases and failure scenarios.
Quality Assurance: Validate both positive flows and negative/revert branches.
Ready to deliver a clean, tested PR within 12–24 hours. Please assign!
@ARAPHI20 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi! I’m a full-stack developer with a strong blockchain background. I’d love to handle this issue and can deliver a clean, reliable solution. Kindly assign it to me.
@Morrison26-gif has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi Maintainer, I’ve looked over the requirements and acceptance criteria and believe I can implement a solution that aligns with what’s expected. Kindly consider assigning it to me.
Congratulations, @davidjhonsonmate! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @davidjhonsonmate: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @davidjhonsonmate: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
ranjeet150 commentedon Sep 17, 2026
Hello team,
I can tackle
verify-env-validation.mjs never builds with NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC or a rejected URL scheme, only TESTNET and a malformed URL. Proposed implementation roadmap:MergeFi/frontendverify-env-validation.mjs never builds with NEXT_PUBLIC_STELLAR_NETWORK=PUBLIC or a rejected URL scheme, only TESTNET and a malformed URLverifying edge cases and failure scenarios.Ready to deliver a clean, tested PR within 12–24 hours. Please assign!
ARAPHI20 commentedon Sep 23, 2026
@ARAPHI20 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @ARAPHI20 to this issue.
shekwolonathanielbala-cyber commentedon Sep 23, 2026
@shekwolonathanielbala-cyber has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @shekwolonathanielbala-cyber to this issue.
officialtemzs commentedon Sep 23, 2026
@officialtemzs has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @officialtemzs to this issue.
Morrison26-gif commentedon Sep 23, 2026
@Morrison26-gif has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Morrison26-gif to this issue.
davidjhonsonmate commentedon Sep 23, 2026
@davidjhonsonmate has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @davidjhonsonmate to this issue.
drips-wave commentedon Sep 23, 2026
Congratulations, @davidjhonsonmate! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @davidjhonsonmate: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
fix: add coverage config, PUBLIC network test, async login tests, and…
Merge pull request #535 from davidjhonsonmate/fix/issues-416-417-418-419
drips-wave commentedon Sep 25, 2026
This issue has been completed by @davidjhonsonmate as part of the Stellar Wave Program's 9th Wave 🥳
😎 @davidjhonsonmate: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.