Merge pull request #38 from web3privacy/dk/fix-fetching

fix(data-fetching): fetch from remote
This commit is contained in:
DanielKlein 2024-09-24 12:35:32 +02:00 committed by GitHub
commit fec9d341e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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