Skip to content

Commit

Permalink
update sample config to use InertiaConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Dec 3, 2023
1 parent 76c4bb9 commit 324d37c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/inertia.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict'

import { App } from '@supercharge/facades'
import { Application } from '@supercharge/contracts'
import { Inertia, InertiaOptions } from '@supercharge/inertia'
import { Inertia, InertiaConfig } from '@supercharge/inertia'

const inertiaConfig: InertiaOptions = {
const inertiaConfig: InertiaConfig = {
/**
* Defines the root template view that will be loaded on the first page visit.
* This root view template should be provided in the resources directory of
Expand Down Expand Up @@ -46,7 +46,7 @@ const inertiaConfig: InertiaOptions = {
* render function is required for Inertia to create the rendered HTML.
* Your file may use a default export or a named "render" export.
*/
resolveRenderFunctionFrom: 'bootstrap/ssr.js'
resolveRenderFunctionFrom: App.resolveFromBasePath('bootstrap/ssr/ssr.js')
}
}

Expand Down

0 comments on commit 324d37c

Please sign in to comment.