MCPcopy Index your code
hub / github.com/TanStack/router / getConfig

Function getConfig

packages/start-plugin-core/src/plugin.ts:62–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61 let startConfig: TanStackStartOutputConfig | null
62 const getConfig: GetConfigFn = () => {
63 if (!resolvedStartConfig.root) {
64 throw new Error(`Cannot get config before root is resolved`)
65 }
66 if (!startConfig) {
67 startConfig = parseStartConfig(
68 startPluginOpts,
69 corePluginOpts,
70 resolvedStartConfig.root,
71 )
72 }
73 return { startConfig, resolvedStartConfig, corePluginOpts }
74 }
75
76 // When the router basepath and vite base are misaligned during dev,
77 // we install a URL rewrite middleware instead of erroring.

Callers 6

configFunction · 0.70
handlerFunction · 0.70
configureServerFunction · 0.50
getRouteTreeFileFooterFunction · 0.50
tanStackStartRouterFunction · 0.50

Calls 1

parseStartConfigFunction · 0.90

Tested by

no test coverage detected