Skip to content

Commit

Permalink
🧹 chore: remove deprecated "images.domains" (#1929)
Browse files Browse the repository at this point in the history
<!--
Thanks for opening a PR! Your contribution is much appreciated!
-->

## Bug

- [ ] Related issues linked using `closes: #number`

## Feature

- [ ] Related issues linked using `closes: #number`
- [ ] There is only 1 db migration with no breaking changes.

## Translations

- [ ] `.json` files are formatted: `pnpm format`
- [ ] Translations are correct
- [ ] New translation? It's been added to `i18n.config.mjs`
  • Loading branch information
WhitigolProd authored May 14, 2024
1 parent 44f0f27 commit 25ffdb8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion apps/client/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion apps/client/tests/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 25ffdb8

Please sign in to comment.