fix(data-fetching): fetch from remote

This commit is contained in:
Daniel Klein 2024-09-24 12:33:49 +02:00
parent 82a878933d
commit 0f8a021dd0
3 changed files with 1 additions and 18841 deletions

View file

@ -63,7 +63,6 @@ export default defineNuxtConfig({
baseBranch: 'main', baseBranch: 'main',
repo: 'test-repo', repo: 'test-repo',
}, },
datasource: 'local',
}, },
}, },
}) })

View file

@ -1,6 +1,3 @@
export default defineEventHandler(async () => { export default defineEventHandler(async () => {
const { datasource } = useRuntimeConfig()
if (datasource === 'remote')
return $fetch('https://explorer-data.web3privacy.info/') return $fetch('https://explorer-data.web3privacy.info/')
return await useStorage('assets:server').getItem('data.json')
}) })

File diff suppressed because it is too large Load diff