alpha
Login
or
Join now
danielroe.dev
/
web-dev-challenge
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/web-dev-challenge.
quickrecipes.co
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
chore: lengthen stale time
author
Daniel Roe
date
1 year ago
(Apr 9, 2025, 11:46 AM -0700)
commit
a843ba13
a843ba13d56b7ad9743bf47d639c40bf2aa5d654
parent
896ec240
896ec240ff351b519026e9b16d56c299c6ce3984
+14
-2
1 changed file
Expand all
Collapse all
Unified
Split
server
routes
recipe.get.ts
+14
-2
server/routes/recipe.get.ts
View file
Reviewed
···
28
28
} as const
29
29
30
30
type Response = {
31
31
-
[key in keyof typeof responseSchema['properties']]: typeof responseSchema['properties'][key]['type'] extends 'string' ? 'enum' extends keyof typeof responseSchema['properties'][key] ? typeof responseSchema['properties'][key]['enum'] extends Array<infer S> ? S : string : string : typeof responseSchema['properties'][key]['type'] extends 'boolean' ? boolean : unknown
31
31
+
longTitle: string
32
32
+
shortTitle: string
33
33
+
description: string
34
34
+
slides: {
35
35
+
title: string
36
36
+
description: string
37
37
+
text: string
38
38
+
image?: {
39
39
+
src: string
40
40
+
width: number
41
41
+
height: number
42
42
+
}
43
43
+
}[]
32
44
}
33
45
34
46
export default defineLazyEventHandler(async () => {
···
77
89
console.error(e, { text: text })
78
90
return await $fetch('/recipe' as string) as unknown
79
91
}
80
80
-
}, { swr: true, shouldBypassCache: () => !!import.meta.dev })
92
92
+
}, { swr: true, staleMaxAge: 86400, maxAge: 86400, shouldBypassCache: () => !!import.meta.dev })
81
93
})