MCPcopy
hub / github.com/QwikDev/qwik / getBuildBase

Function getBuildBase

packages/qwik/src/server/utils.ts:19–31  ·  view source on GitHub ↗
(opts: RenderToStringOptions)

Source from the content-addressed store, hash-verified

17}
18
19export function getBuildBase(opts: RenderToStringOptions) {
20 let base = opts.base;
21 if (typeof opts.base === 'function') {
22 base = opts.base(opts);
23 }
24 if (typeof base === 'string') {
25 if (!base.endsWith('/')) {
26 base += '/';
27 }
28 return base;
29 }
30 return `${import.meta.env.BASE_URL || '/'}build/`;
31}
32
33/** @public */
34export const versions = {

Callers 1

renderToStreamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…