Skip to content

Commit cef2fb1

Browse files
committed
fix(api): add User-Agent for requests
1 parent ff3688e commit cef2fb1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.vitepress/routes/single-page.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ interface File {
2323

2424
export default defineEventHandler(async () => {
2525
let body = ''
26+
const f = fetcher({
27+
headers: {
28+
'User-Agent': 'taskylizard'
29+
}
30+
})
31+
2632
try {
2733
// event.waitUntil(async () => {
28-
const f = fetcher()
2934

3035
// Fetch the list of files in the repository
3136
const files = await f.get<File[]>(GITHUB_REPO)

0 commit comments

Comments
 (0)