Configuration: use Valibot and allow multiple forges of one type #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "rei/config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the way that Forges are configured so that it's possible to set up multiple forges with one provider (for example, multiple Gitea forges).
The config system is also changed so that env vars are loaded into a nested structure and then validated and transformed using Valibot.
@ -8,3 +8,3 @@authRouter.get("/providers", (_req, res) => {res.json({ providers: listAvailableForges() });res.json({ providers: listAvailableForgeIds() });I guess this should include more information about each provider at some point, for example the name, icon and maybe URL, so that the frontend can let you choose between them.
Agreed.
698a6c7e19to92b00934a2LGTM