Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25ffdb8

Browse files
authored
🧹 chore: remove deprecated "images.domains" (#1929)
<!--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`
1 parent44f0f27 commit25ffdb8

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

‎apps/client/next.config.mjs‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,23 @@ const nextConfig = {
2424
// prettier-ignore
2525
images:{// start images
2626
formats:["image/avif","image/webp"],
27-
domains:["i.imgur.com","cdn.discordapp.com","localhost"]
27+
remotePatterns:[
28+
{
29+
protocol:"https",
30+
hostname:"i.imgur.com",
31+
pathname:"**"
32+
},
33+
{
34+
protocol:"https",
35+
hostname:"cdn.discordapp.com",
36+
pathname:"**"
37+
},
38+
{
39+
protocol:"http",
40+
hostname:"localhost",
41+
pathname:"**"
42+
},
43+
]
2844
},// end images
2945
// prettier-enable
3046
webpack(config,{ webpack}){

‎apps/client/tests/utils.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const DOB_2 = "1953-10-21";
2525

2626
describe("calculateAge",()=>{
2727
test("Should correctly calculate age",()=>{
28-
expect(calculateAge(DOB_1)).toMatchInlineSnapshot('"24"');
28+
expect(calculateAge(DOB_1)).toMatchInlineSnapshot('"25"');
2929
});
3030

3131
test("Should correctly calculate age",()=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp