Skip to content

Commit

Permalink
fix: explicitly list api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 10, 2023
1 parent a976397 commit 127127d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export default defineNuxtConfig({
'/modules/**': { swr: 60 },
'/partners/**': { swr: 60 },
'/showcase': { swr: 60 },
'/api/**': { swr: 60 },
'/api/jobs': { swr: 60 },
'/api/sponsors': { swr: 60 },
'/api/email/**': { swr: 60 },
'/api/modules/**': { swr: 60 },
// defaults
'/**': { cache: { swr: true, maxAge: 120, staleMaxAge: 60, headersOnly: true }, prerender: false }
}
Expand Down

0 comments on commit 127127d

Please sign in to comment.