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

Function getResolvedUrl

packages/start-plugin-core/src/prerender.ts:309–317  ·  view source on GitHub ↗
(previewServer: PreviewServer)

Source from the content-addressed store, hash-verified

307}
308
309function getResolvedUrl(previewServer: PreviewServer): URL {
310 const baseUrl = previewServer.resolvedUrls?.local[0]
311
312 if (!baseUrl) {
313 throw new Error('No resolved URL is available from the Vite preview server')
314 }
315
316 return new URL(baseUrl)
317}
318
319/**
320 * Validates and normalizes prerender page paths to ensure they are relative

Callers 1

prerenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected