Files
supabase/apps/docs/features/helpers.time.ts
Charis 9fb97becb9 fix: revalidate fetches every day (#27828)
The Vercel Data Cache caches data across deployments, and we want to
check for updates in federated content, so let's revalidate the data
once a day.

It may be more efficient to revalidate on-demand, since we don't change
most of these sources once a day, but that requires setting up an API
endpoint (and figuring out how to authenticate it), so this is
quick-and-easy for now.
2024-07-08 13:12:19 -04:00

4 lines
71 B
TypeScript

const ONE_DAY_IN_SECONDS = 60 * 60 * 24
export { ONE_DAY_IN_SECONDS }