Skip to content

Commit

Permalink
fix SSR with inertia
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jul 14, 2022
1 parent 37d124c commit ea7925c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ function noExternalInertiaHelpers(config: UserConfig): true|Array<string|RegExp>
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
/* @ts-ignore */
const userNoExternal = (config.ssr as SSROptions|undefined)?.noExternal
const pluginNoExternal = ['laravel-vite-plugin/inertia-helpers']
const pluginNoExternal = [
'laravel-vite-plugin/inertia-helpers',
'@inertiajs/server'
]

if (userNoExternal === true) {
return true
Expand Down

0 comments on commit ea7925c

Please sign in to comment.