We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d931c8 commit 8058f73Copy full SHA for 8058f73
resources/js/ssr.ts
@@ -12,7 +12,7 @@ createServer((page) =>
12
page,
13
render: renderToString,
14
title: (title) => title ? `${title} - ${appName}` : appName,
15
- resolve: resolvePage,
+ resolve: (name) => resolvePageComponent(`./pages/${name}.vue`, import.meta.glob<DefineComponent>('./pages/**/*.vue')),
16
setup: ({ App, props, plugin }) =>
17
createSSRApp({ render: () => h(App, props) })
18
.use(plugin)
@@ -23,9 +23,3 @@ createServer((page) =>
23
}),
24
{ cluster: true },
25
);
26
-
27
-function resolvePage(name: string) {
28
- const pages = import.meta.glob<DefineComponent>('./pages/**/*.vue');
29
30
- return resolvePageComponent<DefineComponent>(`./pages/${name}.vue`, pages);
31
-}
0 commit comments