config update to account for api
This commit is contained in:
parent
92bd260c80
commit
4e6c6b7fdf
@ -27,6 +27,18 @@ const nextConfig = {
|
||||
port: "1337",
|
||||
pathname: "/**",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "api.kevosattire.com",
|
||||
port: "",
|
||||
pathname: "/**",
|
||||
},
|
||||
{
|
||||
protocol: "http",
|
||||
hostname: "192.168.50.107",
|
||||
port: "1337",
|
||||
pathname: "/**",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
@ -21,7 +21,7 @@ const Products = () => {
|
||||
}
|
||||
});
|
||||
const data = await response.json();
|
||||
// console.log(data.data);
|
||||
console.log(data.data);
|
||||
// console.log(data.data[0].image.url);
|
||||
setData(data.data);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user