chore: remediate CI blockers for production readiness
This commit is contained in:
@@ -16,7 +16,9 @@ const API_BASE_URL = process.env['NEXT_PUBLIC_API_URL'] || 'http://localhost:300
|
||||
export async function fetchListingById(id: string): Promise<ListingDetail | null> {
|
||||
try {
|
||||
const res = await fetch(`${API_BASE_URL}/listings/${id}`, {
|
||||
next: { revalidate: 300 }, // ISR: re-validate every 5 min
|
||||
// Listing detail includes mutable status, price, legal and moderation data.
|
||||
// Avoid serving stale details after admin/user actions.
|
||||
cache: 'no-store',
|
||||
});
|
||||
|
||||
if (!res.ok) return null;
|
||||
|
||||
Reference in New Issue
Block a user