Skip to content

rewriteSampleHosts

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/technical-docs/spec-server-overlay.ts

Repoint x-codeSamples at the configured base URL.

Rewrites only the generated placeholder, so a project whose samples already carry a real host keeps them.

Signature

ts
function rewriteSampleHosts(paths: unknown, baseUrl: string): unknown

Parameters

NameType
pathsunknown
baseUrlstring

Returns: unknown

Was this page helpful?

Download as PDF