mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00:00
11 lines
346 B
JavaScript
11 lines
346 B
JavaScript
// entry for SSR
|
|
import { renderToString } from 'vue/server-renderer';
|
|
import { createApp } from './index';
|
|
export async function render(path) {
|
|
const { app, router } = await createApp();
|
|
await router.go(path);
|
|
const ctx = { content: '', vpSocialIcons: new Set() };
|
|
ctx.content = await renderToString(app, ctx);
|
|
return ctx;
|
|
}
|