We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server-side rendering
The SSR engine doesn't know the current URL you are requesting.
To make the method current work correctly on the initial page load, you must pass the initial URL to the options list.
createServer((page: Page) => createInertiaApp({ setup({ App, props, plugin }) { return createSSRApp({ render: () => h(App, props) }) .use(trail, { routes, url: props.initialPage.url }) }, }) )
my current SSR.ts looks like this
import { createInertiaApp } from '@inertiajs/svelte'; import createServer from '@inertiajs/svelte/server'; import type { Page } from '@inertiajs/inertia'; createServer((page: Page) => createInertiaApp({ page, resolve: (name) => { const pages = import.meta.glob('./Pages/**/*.svelte', { eager: true }); return pages[`./Pages/${name}.svelte`]; } }) );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The SSR engine doesn't know the current URL you are requesting.
To make the method current work correctly on the initial page load, you must pass the initial URL to the options list.
my current SSR.ts looks like this
The text was updated successfully, but these errors were encountered: