8 lines
275 B
TypeScript
8 lines
275 B
TypeScript
import { renderToString } from '@vue/server-renderer';
|
|
import { createApp } from './app';
|
|
import type { ProductionInputs } from './content/types';
|
|
|
|
export async function render(_url: string, inputs: Readonly<ProductionInputs>) {
|
|
return renderToString(createApp(inputs));
|
|
}
|