Skip to content

Commit 43f5760

Browse files
committed
Move runtime text + rewrite
1 parent ea6aa81 commit 43f5760

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,16 @@ export default function () {
334334
php artisan inertia:start-ssr
335335
`}
336336
/>
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+
/>
337347
<P>
338348
With the server running, you should be able to access your app within the browser with server-side rendering
339349
enabled. In fact, you should be able to disable JavaScript entirely and still navigate around your application.
@@ -541,16 +551,6 @@ export default function () {
541551
Note, you must have the <Code>heroku/nodejs</Code> buildpack installed in addition to the{' '}
542552
<Code>heroku/php</Code> buildback for the SSR server to run.
543553
</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-
/>
554554
</>
555555
)
556556
}

0 commit comments

Comments
 (0)