Skip to content

Commit 94f56b0

Browse files
authored
Merge pull request #408 from harryqt/master
Mention Bun runtime
2 parents 0145fd0 + 43f5760 commit 94f56b0

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
@@ -341,6 +334,16 @@ export default function () {
341334
php artisan inertia:start-ssr
342335
`}
343336
/>
337+
<P>
338+
You may use the <Code>--runtime</Code> option to specify which runtime you want to use. This allows you to
339+
switch from the default Node.js runtime to Bun.
340+
</P>
341+
<CodeBlock
342+
language="bash"
343+
children={dedent`
344+
php artisan inertia:start-ssr --runtime=bun
345+
`}
346+
/>
344347
<P>
345348
With the server running, you should be able to access your app within the browser with server-side rendering
346349
enabled. In fact, you should be able to disable JavaScript entirely and still navigate around your application.

0 commit comments

Comments
 (0)