mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
fix(data-fetching): fetch from remote
This commit is contained in:
parent
82a878933d
commit
0f8a021dd0
3 changed files with 1 additions and 18841 deletions
|
@ -63,7 +63,6 @@ export default defineNuxtConfig({
|
|||
baseBranch: 'main',
|
||||
repo: 'test-repo',
|
||||
},
|
||||
datasource: 'local',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
export default defineEventHandler(async () => {
|
||||
const { datasource } = useRuntimeConfig()
|
||||
if (datasource === 'remote')
|
||||
return $fetch('https://explorer-data.web3privacy.info/')
|
||||
return await useStorage('assets:server').getItem('data.json')
|
||||
})
|
||||
|
|
18836
server/assets/data.json
18836
server/assets/data.json
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue