Skip to content

Commit

Permalink
dif approach for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 9, 2024
1 parent f952801 commit f4a9a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/app/api/[[...slugs]]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ type CacheEntry = {
timestamp: number;
};

export const maxDuration = 60; // 60 seconds, config for timeout
export const dynamic = 'force-dynamic';

const cache = new Map<string, CacheEntry>();
const CACHE_DURATION = 24 * 60 * 60 * 1000; // 24 hours in milliseconds

Expand Down
7 changes: 0 additions & 7 deletions vercel.json

This file was deleted.

0 comments on commit f4a9a06

Please sign in to comment.