Files
ebook/.nuxt/nuxt-icon-server-bundle.mjs
koziavin 886f21e0a2
All checks were successful
Deploy Application / deploy (push) Successful in 7s
fix
2025-06-18 08:35:55 +04:00

15 lines
344 B
JavaScript

import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
function createRemoteCollection(fetchEndpoint) {
let _cache
return async () => {
if (_cache)
return _cache
const res = await fetch(fetchEndpoint).then(r => r.json())
_cache = res
return res
}
}
export const collections = {
}