Qwik Speak Inline Vite plugin
How it works
Usage
Get the code ready
import { isDev } from '@builder.io/qwik/build';
export function extractBase({ serverData }: RenderOptions): string {
if (!isDev && serverData?.locale) {
return '/build/' + serverData.locale;
} else {
return '/build';
}
}
export default function (opts: RenderToStreamOptions) {
return renderToStream(<Root />, {
manifest,
...opts,
// Determine the base URL for the client code
base: extractBase,
});
}Configure
Load assets
Last updated