Skip to content

Conversation

@AlexTMjugador
Copy link
Contributor

Overview

These changes make the API and website endpoints used by the Modrinth app to referring to Modrinth services configurable through a .env file located at packages/app-lib, which is read at compile time. This brings the app environment configuration method in line with that used by the frontend and Labrinth.

As a result, developers can easily test any combination of Labrinth backend and frontend directly from the app without modifying any source code. Additionally, build workflows now clearly have to define which environment the app is using, allowing them to select the staging environment when appropriate.

⚠️ Important change for other app developers

After this PR is merged, a .env file must be present at packages/app-lib with the appropriate variables in order to build the app. You can initialize a suitable .env file with a command like cp packages/app-lib/.env.prod packages/app-lib/.env.

@AlexTMjugador AlexTMjugador added enhancement app Relates to Modrinth App labels Jul 17, 2025
@AlexTMjugador AlexTMjugador added this pull request to the merge queue Jul 21, 2025
Merged via the queue into main with commit d4516d3 Jul 21, 2025
1 check passed
@AlexTMjugador AlexTMjugador deleted the alex/configurable-app-modrinth-endpoints branch July 21, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app Relates to Modrinth App

Development

Successfully merging this pull request may close these issues.

3 participants