Get Cached Redirects

amerta


amerta / amerta/payload/utilities/getRedirects / getCachedRedirects

Function: getCachedRedirects()

getCachedRedirects(): () => Promise<Redirect[]>

Defined in: amerta/payload/utilities/getRedirects.ts:23

Returns a unstable_cache function mapped with the cache tag for 'redirects'.

Cache all redirects together to avoid multiple fetches.

Returns

(): Promise<Redirect[]>

Returns

Promise<Redirect[]>