Skip to content

Make THESEUS_CONFIG_DIR work in dev mode#5355

Open
creeperkatze wants to merge 4 commits intomodrinth:mainfrom
creeperkatze:app-config-dir-fix
Open

Make THESEUS_CONFIG_DIR work in dev mode#5355
creeperkatze wants to merge 4 commits intomodrinth:mainfrom
creeperkatze:app-config-dir-fix

Conversation

@creeperkatze
Copy link
Contributor

Fixes THESEUS_CONFIG_DIR not working when running the app via app:dev by using option_env!() (compile-time) instead of std::env::var_os() (runtime).

This aligns with the existing pattern used by MODRINTH_URL and other environment variables.

@creeperkatze
Copy link
Contributor Author

Just a little disclaimer, this changes the behavior to use compile-time environment variables (requiring rebuild to change).

While the env variable shouldnt interfere with any app migration stuff, this could be breaking if THESEUS_CONFIG_DIR i used in some non-dev context.

@IMB11 IMB11 added the 📂 Under review [Triage] Is being reviewed by Modrinth Staff for future roadmap consideration. label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📂 Under review [Triage] Is being reviewed by Modrinth Staff for future roadmap consideration.

Development

Successfully merging this pull request may close these issues.

2 participants

Comments