mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
21 lines
661 B
TypeScript
21 lines
661 B
TypeScript
import "../css/app.css";
|
|
|
|
import { createInertiaApp } from "@inertiajs/svelte";
|
|
import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers";
|
|
import { mount, type Component } from "svelte";
|
|
|
|
createInertiaApp({
|
|
resolve: (name: string) =>
|
|
resolvePageComponent(`./pages/${name}.svelte`, import.meta.glob("./pages/**/*.svelte")),
|
|
setup({ el, App, props }: { el: HTMLElement; App: Component; props: Record<string, unknown> }) {
|
|
mount(App, { target: el, props });
|
|
},
|
|
defaults: {
|
|
future: {
|
|
preserveEqualProps: true,
|
|
useDataInertiaHeadAttribute: true,
|
|
useDialogForErrorModal: true,
|
|
useScriptElementForInitialPage: true,
|
|
},
|
|
},
|
|
});
|