I’m having some massive requests for a few days to almost every route, which is increasing our read and write to the ISR functions, is it a problem of ISR configuration, which is triggering page refresh repeatedly? I’m so desperate with this issue for days; any help would be appreciated!
I provide with the code which I’ve done this thousands of times and never face this problem before ![]()
export const revalidate = 86400; // 1 days
export async function generateMetadata({
params,
}: {
params: { suburb: string };
}): Promise<Metadata> {
...
}
export async function generateStaticParams() {
const response = await useGetListingsQuery.fetcher({})();
return uniqBy(
response.changed?.items.map((listing) => ({
suburb: slugify(listing.suburb || ''),
})) || [],
(x) => x.suburb
);
}
type ListingListProps = {
params: {
suburb: string;
};
};
const SuburbListingList = async ({ params }: ListingListProps) => {
const suburb = suburbs.find((suburb) => suburb.slug === params.suburb);
if (!suburb) {
redirect(routes.listings());
}
....

