support RXResume config URL config in onboarding (#159)

* support RXResume config URL config in onboarding

* update documentation and fix linting
This commit is contained in:
Marcin Szymański 2026-02-12 22:04:32 +00:00 committed by GitHub
parent d4d2c0c26b
commit cc84157149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -129,3 +129,8 @@ git pull
docker compose pull
docker compose up -d
```
## Self-hosted Reactive Resume
If you are also self-hosting Reactive Resume, you should configure the url
by setting `RXRESUME_URL` to your instance (e.g. `http://rxresume.local.net`).

View File

@ -95,12 +95,17 @@ async function validateRxresume(
): Promise<ValidationResponse> {
const rxEmail = email?.trim() || process.env.RXRESUME_EMAIL || "";
const rxPassword = password?.trim() || process.env.RXRESUME_PASSWORD || "";
const rxUrl = process.env.RXRESUME_URL || "https://v4.rxresu.me";
if (!rxEmail || !rxPassword) {
return { valid: false, message: "RxResume credentials are missing." };
}
const result = await RxResumeClient.verifyCredentials(rxEmail, rxPassword);
const result = await RxResumeClient.verifyCredentials(
rxEmail,
rxPassword,
rxUrl,
);
if (result.ok) {
return { valid: true, message: null };