Skip to content

Commit

Permalink
fix(server): vercel does not return data when maxAge is set (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunanshub authored Feb 9, 2024
1 parent 5fc1ac8 commit 075c970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/api/question/[id].get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export default defineCachedEventHandler(
}
return question
},
{ swr: true, staleMaxAge: 3600, maxAge: 3600 },
{ swr: true, staleMaxAge: 3600 },
)
2 changes: 1 addition & 1 deletion src/server/api/sections.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default defineCachedEventHandler(
async (event) => {
return await getSectionsWithoutId(event.context.db)
},
{ swr: true, staleMaxAge: 3600, maxAge: 3600 },
{ swr: true, staleMaxAge: 3600 },
)

0 comments on commit 075c970

Please sign in to comment.