Skip to content

Commit

Permalink
fix(api): add User-Agent for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Jul 27, 2024
1 parent ff3688e commit cef2fb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vitepress/routes/single-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ interface File {

export default defineEventHandler(async () => {
let body = ''
const f = fetcher({
headers: {
'User-Agent': 'taskylizard'
}
})

try {
// event.waitUntil(async () => {
const f = fetcher()

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

0 comments on commit cef2fb1

Please sign in to comment.