Using revalidate on a page fails build

export const revalidate=60 Hello, using any number other than 0 will give [ECONNREFUSED] Is there anyone with additional info for this?
1 Reply
Ambushfall
AmbushfallOP2y ago
A little more background: Using the app folder, server component to fetch from an internally exposed API errors when setting revalidate. Are we to use the exposed API only in client components?
const response = await fetch(`${process.env.NEXT_PUBLIC_HOST}/github/${username}`);
return await response.json();
const response = await fetch(`${process.env.NEXT_PUBLIC_HOST}/github/${username}`);
return await response.json();
Want results from more Discord servers?
Add your server