Minimal Viable Product + Refactor to pinia store + Fix PDF export
This commit is contained in:
@@ -4,6 +4,7 @@ import { renderToString } from 'vue/server-renderer';
|
||||
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
|
||||
import { createSSRApp, DefineComponent, h } from 'vue';
|
||||
import { ZiggyVue } from 'ziggy-js';
|
||||
import pinia from './lib/pinia';
|
||||
|
||||
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
|
||||
|
||||
@@ -16,6 +17,7 @@ createServer((page) =>
|
||||
setup: ({ App, props, plugin }) =>
|
||||
createSSRApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.use(pinia)
|
||||
.use(ZiggyVue, {
|
||||
...page.props.ziggy,
|
||||
location: new URL(page.props.ziggy.location),
|
||||
|
||||
Reference in New Issue
Block a user