MCPcopy
hub / github.com/blitz-js/blitz / getResolverMap

Function getResolverMap

packages/blitz-rpc/src/index-server.ts:209–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207// ----------
208
209async function getResolverMap(): Promise<ResolverFiles | null | undefined> {
210 // Handles:
211 // - Next.js
212 // - Nuxt
213 // - Vite with `importBuild.js`
214 {
215 const resolverFilesLoaded = loadBlitzRpcResolverFilesWithInternalMechanism()
216 if (resolverFilesLoaded) {
217 return resolverFilesLoaded
218 }
219 }
220
221 // Handles:
222 // - Vite
223 // {
224 // const {resolverFilesLoaded, viteProvider} = await loadTelefuncFilesWithVite(run
225 // if (resolverFilesLoaded) {
226 // assertUsage(
227 // Object.keys(resolverFilesLoaded).length > 0,
228 // getErrMsg(`Vite [\`${viteProvider}\`]`),
229 // )
230 // return resolverFilesLoaded
231 // }
232 // }
233}
234
235interface RpcConfig {
236 onError?: (error: Error, ctx?: Ctx) => void

Callers 2

rpcHandlerFunction · 0.85
handleRpcRequestFunction · 0.85

Tested by

no test coverage detected