diff --git a/E2E/Tests/Home/Sitemap.spec.ts b/E2E/Tests/Home/Sitemap.spec.ts index ca81b4bb8b..1738094fd8 100644 --- a/E2E/Tests/Home/Sitemap.spec.ts +++ b/E2E/Tests/Home/Sitemap.spec.ts @@ -49,18 +49,23 @@ test.describe("Home: Sitemap", () => { // Ensure at least one dynamic section appears const hasBlog: boolean = locs.some((l: string) => { + // eslint-disable-next-line prettier/prettier return (/\/blog\b/).test(l); }); const hasCompare: boolean = locs.some((l: string) => { + // eslint-disable-next-line prettier/prettier return (/\/compare\//).test(l); }); const hasProductPages: boolean = locs.some((l: string) => { + // eslint-disable-next-line prettier/prettier return (/\/product\//).test(l); }); const hasDocs: boolean = locs.some((l: string) => { + // eslint-disable-next-line prettier/prettier return (/\/docs\//).test(l); }); const hasLegal: boolean = locs.some((l: string) => { + // eslint-disable-next-line prettier/prettier return (/\/legal\//).test(l); }); expect(hasBlog).toBeTruthy(); diff --git a/Home/Routes.ts b/Home/Routes.ts index 4e2ef869f8..8540991296 100755 --- a/Home/Routes.ts +++ b/Home/Routes.ts @@ -40,7 +40,7 @@ const HomeFeatureSet: FeatureSet = { res.locals["homeUrl"] = (await DatabaseConfig.getHomeUrl()) .toString() .replace(/\/$/, ""); - } catch (_err) { + } catch { // Fallback hard-coded production domain if env misconfigured res.locals["homeUrl"] = "https://oneuptime.com"; }