Skip to content

Commit

Permalink
Simplify SSR render logic (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroborges committed Sep 16, 2024
1 parent 50b3508 commit d0c0647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/createInertiaApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async function createInertiaApp({

return {
body: `<div data-server-rendered="true" id="${id}" data-page="${escape(JSON.stringify(initialPage))}">${html}</div>`,
head: css ? [head, `<style data-vite-css>${css.code}</style>`] : [head],
head: [head, css ? `<style data-vite-css>${css.code}</style>` : ''],
}
}

Expand Down

0 comments on commit d0c0647

Please sign in to comment.