Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KingPsychopath/oooc-fete-finder/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The revalidation endpoint allows you to manually trigger a refresh of cached event data. This is useful after deploying data updates or when you need to force a cache invalidation.Authentication
This endpoint requires authentication using theDEPLOY_REVALIDATE_SECRET environment variable.
Endpoint
Trigger revalidation
/api/revalidate/deploy
Methods: GET, POST
Headers:
Bearer token containing the
DEPLOY_REVALIDATE_SECRET value.Format: Bearer YOUR_DEPLOY_REVALIDATE_SECRETAlternative to Authorization header. Provide the secret directly without “Bearer” prefix.
The endpoint accepts the secret via either the
Authorization header (with “Bearer” prefix) or the x-revalidate-secret header.Response
Success response
Indicates whether the revalidation was successful.
Human-readable description of the result.
Number of events loaded after revalidation.
Data source used for refresh (e.g., “live”, “backup”).
Error responses
Always
false for error responses.Error message describing what went wrong.
Additional context about the error (for 500 errors).
Status codes
| Code | Description |
|---|---|
| 200 | Revalidation successful |
| 401 | Missing or invalid authentication secret |
| 500 | Internal server error during data refresh |
| 503 | DEPLOY_REVALIDATE_SECRET not configured |
Implementation details
The endpoint:- Validates the provided secret against
DEPLOY_REVALIDATE_SECRET - Calls
forceRefreshEventsData()to reload event data - Returns the refresh result with event count and data source
- Sets no-cache headers to prevent response caching
app/api/revalidate/deploy/route.ts:21