Skip to content

Allow audiusAppUrl to be overridden via env var#747

Open
rickyrombo wants to merge 1 commit intomainfrom
mjp-audiusappurl-env
Open

Allow audiusAppUrl to be overridden via env var#747
rickyrombo wants to merge 1 commit intomainfrom
mjp-audiusappurl-env

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

Summary

  • Adds audiusAppUrl to the var Cfg initializer so it can be set via env var
  • Guards the hardcoded dev (http://localhost:3000) and prod (https://audius.co) defaults in init() so an explicit env value isn't clobbered

Needed so developer apps running against a non-default URL (e.g. staging or a local override) get the right redirect_uri base.

Test plan

  • Set audiusAppUrl=http://custom.example in env, verify Cfg.AudiusAppUrl reflects it after init()
  • Leave audiusAppUrl unset in dev/prod, verify defaults still apply

🤖 Generated with Claude Code

Add audiusAppUrl env var to Cfg initializer and guard the hardcoded
dev/prod defaults so an explicit env value is not clobbered by init().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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