Skip to content

Commit 2a73d20

Browse files
committed
fix: issue of build
1 parent 0078198 commit 2a73d20

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

client/components/CustomTable.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Image from 'next/image'
12
const CustomTable = ({ data }: any) => {
23
return (
34
<div className="flex flex-col p-10">
@@ -49,10 +50,12 @@ const CustomTable = ({ data }: any) => {
4950
<td className="px-6 py-4 whitespace-nowrap">
5051
<div className="flex items-center">
5152
<div className="flex-shrink-0 h-10 w-10">
52-
<img
53+
<Image
54+
width={50}
55+
height={50}
5356
className="h-10 w-10 rounded-full"
5457
src={
55-
'https://images.unsplash.com/photo-1570295999919-56ceb5ecca61'
58+
'https://example.comm/photo-1570295999919-56ceb5ecca61'
5659
}
5760
alt=""
5861
/>

client/next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
22
reactStrictMode: true,
3+
images: {
4+
domains: ['images.unsplash.com'],
5+
},
36
}
7+

client/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Home: FC<{ data: string[] }> = ({ data }) => {
2525
);
2626
};
2727

28-
export async function getServerSideProps(context) {
28+
export async function getServerSideProps() {
2929
const { data } = await axios.get(`${process.env.API_URL}/users`);
3030

3131
return {

0 commit comments

Comments
 (0)