mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
Merge pull request #38 from web3privacy/dk/fix-fetching
fix(data-fetching): fetch from remote
This commit is contained in:
commit
fec9d341e5
3 changed files with 1 additions and 18841 deletions
|
@ -63,7 +63,6 @@ export default defineNuxtConfig({
|
||||||
baseBranch: 'main',
|
baseBranch: 'main',
|
||||||
repo: 'test-repo',
|
repo: 'test-repo',
|
||||||
},
|
},
|
||||||
datasource: 'local',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -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')
|
|
||||||
})
|
})
|
||||||
|
|
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