Skip to content

verify-env-validation.mjs never asserts a build succeeds with a correctly-set custom NEXT_PUBLIC_API_URL #205

Closed

Description

@chonilius

scripts/verify-env-validation.mjs's CASES array has four scenarios: missing
NEXT_PUBLIC_STELLAR_NETWORK (fails), invalid network value (fails), invalid API URL
(fails), and a valid network value that relies on the default API URL (succeeds).

There is no case that sets a well-formed, non-default NEXT_PUBLIC_API_URL (e.g.
https://api.example.com) alongside a valid network and asserts the build succeeds. The
only "success" case in this suite exercises validateApiUrl's empty-string/undefined
fallback path (DEFAULT_API_BASE_URL), never its actual URL-parsing success path. A
regression that broke validateApiUrl for any explicitly-set, valid URL — while leaving
the undefined/default path untouched — would pass this entire verification script
undetected, since none of the four cases would catch it.

Suggested fix: add a fifth case — e.g. { name: "valid custom NEXT_PUBLIC_API_URL builds successfully", env: { NEXT_PUBLIC_STELLAR_NETWORK: "TESTNET", NEXT_PUBLIC_API_URL: "https://api.example.com" }, expectSuccess: true }
— so the script actually proves both validateApiUrl code paths, not just the
fallback-default one.

Activity

  1. added
    testing
    bug
    very hard
    help wanted
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 24, 2026
  3. pauxelcreatives-bot commented on Aug 24, 2026

    @pauxelcreatives-bot

    @pauxelcreatives-bot has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @pauxelcreatives-bot to this issue.

  4. Abbyhay commented on Aug 24, 2026

    @Abbyhay

    @Abbyhay has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi Maintainer, I’ve thoroughly reviewed the issue and understand what is expected from the implementation. I’m confident I can complete the work properly and would appreciate being assigned the task.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Abbyhay to this issue.

  5. datagerl commented on Aug 24, 2026

    @datagerl

    @datagerl has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi dev can I please solve this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @datagerl to this issue.

  6. posimideveloper commented on Aug 24, 2026

    @posimideveloper
    Contributor

    @posimideveloper has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I'm ready to tackle this immediately.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @posimideveloper to this issue.

  7. proficientformula commented on Aug 24, 2026

    @proficientformula

    @proficientformula has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello, I've thoroughly examined the scope and am confident I can supply a solid fix meeting all criteria. I'd appreciate you assigning this to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @proficientformula to this issue.

  8. drips-wave commented on Aug 24, 2026

    @drips-wave

    Congratulations, @posimideveloper! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @posimideveloper: 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 🌊

  9. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @posimideveloper as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @posimideveloper: 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.

  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar Wavebughelp wantedtestingvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions