Skip to content

Commit 83d4a6b

Browse files
committed
doc: fallback when nuxt api is down
1 parent 292bd8e commit 83d4a6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default defineNuxtConfig({
1717
async (_, nuxt) => {
1818
// build time for caching
1919
const { contributors } = await $fetch(`https://api.nuxt.com/modules/scripts`)
20+
.catch(() => ({ contributors: [] }))
2021
nuxt.options.runtimeConfig.public.contributors = contributors.map(m => m.id)
2122
},
2223
],

0 commit comments

Comments
 (0)