Skip to content

Commit ea6aa81

Browse files
committed
Mention alternative runtime Bun
1 parent 0145fd0 commit ea6aa81

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

resources/js/Pages/server-side-rendering.jsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ export default function () {
9191
},
9292
]}
9393
/>
94-
<P>Then, make sure you have the latest version of the Inertia Laravel adapter installed.</P>
95-
<CodeBlock
96-
language="bash"
97-
children={dedent`
98-
composer require inertiajs/inertia-laravel
99-
`}
100-
/>
10194
<H2>Add server entry-point</H2>
10295
<P>
10396
Next, we'll create a <Code>resources/js/ssr.js</Code> file within our Laravel project that will serve as our SSR
@@ -548,6 +541,16 @@ export default function () {
548541
Note, you must have the <Code>heroku/nodejs</Code> buildpack installed in addition to the{' '}
549542
<Code>heroku/php</Code> buildback for the SSR server to run.
550543
</P>
544+
<H2>Bun.js</H2>
545+
<P>
546+
To use Bun as runtime instead of Nodejs, you can do the following
547+
</P>
548+
<CodeBlock
549+
language="bash"
550+
children={dedent`
551+
php artisan inertia:start-ssr --runtime=bun
552+
`}
553+
/>
551554
</>
552555
)
553556
}

0 commit comments

Comments
 (0)