diff --git a/apps/client/next.config.mjs b/apps/client/next.config.mjs index 050188e77..fda569bc2 100644 --- a/apps/client/next.config.mjs +++ b/apps/client/next.config.mjs @@ -24,7 +24,23 @@ const nextConfig = { // prettier-ignore images: { // start images formats: ["image/avif", "image/webp"], - domains: ["i.imgur.com", "cdn.discordapp.com", "localhost"] + remotePatterns: [ + { + protocol: "https", + hostname: "i.imgur.com", + pathname: "**" + }, + { + protocol: "https", + hostname: "cdn.discordapp.com", + pathname: "**" + }, + { + protocol: "http", + hostname: "localhost", + pathname: "**" + }, + ] }, // end images // prettier-enable webpack(config, { webpack }) { diff --git a/apps/client/tests/utils.test.ts b/apps/client/tests/utils.test.ts index 538649ecf..f0ce8d452 100644 --- a/apps/client/tests/utils.test.ts +++ b/apps/client/tests/utils.test.ts @@ -25,7 +25,7 @@ const DOB_2 = "1953-10-21"; describe("calculateAge", () => { test("Should correctly calculate age", () => { - expect(calculateAge(DOB_1)).toMatchInlineSnapshot('"24"'); + expect(calculateAge(DOB_1)).toMatchInlineSnapshot('"25"'); }); test("Should correctly calculate age", () => {