Skip to content

Commit

Permalink
chore: throw error if nuxt api is down
Browse files Browse the repository at this point in the history
Fixes #229
  • Loading branch information
harlan-zw committed Sep 2, 2024
1 parent 4a9fc40 commit d8b79f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineNuxtConfig({
async (_, nuxt) => {
// build time for caching
const { contributors } = await $fetch(`https://api.nuxt.com/modules/scripts`)
.catch(() => ({ contributors: [] }))
nuxt.options.runtimeConfig.public.contributors = contributors.map(m => m.id)
},
],
Expand Down

0 comments on commit d8b79f1

Please sign in to comment.