move dc-lookup to more stable server
All checks were successful
Build / Build (push) Successful in 59s
Build / Deploy (push) Successful in 35s

This commit is contained in:
amy 2024-12-16 06:19:46 +03:30
parent bc38495415
commit fff24545a6
No known key found for this signature in database

View file

@ -21,7 +21,7 @@ export default function Reviews() {
.then(response => response.json())
.then((data: Review[]) => {
const promises = data.map(review => (
fetch(`https://dc-lookup.mono.exhq.dev/v1/user/${review.discordID}`)
fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${review.discordID}`)
.then(response => response.json())
.then(user => ({
...review,
@ -67,7 +67,7 @@ export default function Reviews() {
}
export const theImager = async (id: string): Promise<string> => (await fetch(`https://dc-lookup.mono.exhq.dev/v1/user/${id}`)
export const theImager = async (id: string): Promise<string> => (await fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${id}`)
.then(res => res.json()).then(data => "https://proxy.mono.exhq.dev/_/plain/"+data.avatar.link).catch(() => "https://http.cat/status/100"));
function SingleReview(props: NeoReview) {