This repository has been archived on 2024-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
enzos-events/start/inertia.ts
Sockenklaus 39a28cbd14 Revert "added ssr?????"
This reverts commit 5371f784fb.
2023-07-08 18:38:18 +02:00

19 lines
612 B
TypeScript

/*
|--------------------------------------------------------------------------
| Inertia Preloaded File
|--------------------------------------------------------------------------
|
| Any code written inside this file will be executed during the application
| boot.
|
*/
import Inertia from '@ioc:EidelLev/Inertia'
Inertia.share({
//errors: ({session}) => session.flashMessages.get('errors'),
request: ({ request }) => request,
isAdmin: ({ auth }) => auth.user?.isAdmin,
flashMessages: ({ session }) => session.flashMessages.all(),
}).version(() => Inertia.manifestFile('public/assets/manifest.json'))