Skip to content

Commit 702e675

Browse files
committed
add crowdin-static ostname to remote image patterns
1 parent 2ebbd51 commit 702e675

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ module.exports = (phase, { defaultConfig }) => {
6363
trailingSlash: true,
6464
images: {
6565
deviceSizes: [640, 750, 828, 1080, 1200, 1504, 1920],
66+
remotePatterns: [
67+
{
68+
protocol: "https",
69+
hostname: "crowdin-static.downloads.crowdin.com",
70+
},
71+
],
6672
},
6773
}
6874

src/components/TranslationLeaderboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState } from "react"
22
import reverse from "lodash/reverse"
33
import sortBy from "lodash/sortBy"
4-
import Image from "next/image"
54
import { useTranslation } from "next-i18next"
65

76
import type { CostLeaderboardData } from "@/lib/types"
@@ -12,6 +11,7 @@ import { Flex } from "@/components/ui/flex"
1211
import { cn } from "@/lib/utils/cn"
1312

1413
import Emoji from "./Emoji"
14+
import { TwImage } from "./Image"
1515

1616
const RadioCard = ({ value, children, checked, onChange }) => {
1717
return (
@@ -140,7 +140,7 @@ const TranslationLeaderboard = ({
140140
)}
141141
<Flex className="me-8 flex-row items-center break-words">
142142
<div className="s:block relative me-4 hidden h-[30px] w-[30px] sm:h-10 sm:w-10">
143-
<Image
143+
<TwImage
144144
fill
145145
className="rounded-full object-cover"
146146
src={avatarUrl}

0 commit comments

Comments
 (0)