Skip to content

Conversation

@timacdonald
Copy link
Member

@timacdonald timacdonald commented Jul 28, 2022

As the Inertia docs have to cover a lot of information regarding SSR generally (servers, npm packages etc), I felt it might be good to just also point people to the Vite docs directly, as that contains a much more focused version of what they will need to do. The inertia docs go into a lot of detail, where as the only thing you need to do with Jetstream is:

  1. When intially creating your application:

php artisan jetstream:install inertia --ssr

  1. Build your assets:

npm run build

  1. Start the SSR server

node /home/forge/{site}/bootstrap/ssr/ssr.mjs

Which is essentially what is covered in the Vite docs.

Additionally, the Inertia docs are not up to date right now, so this is a nice stop gap (will send a PR shortly to update the docs).

Screen Shot 2022-07-28 at 10 24 09 am

@taylorotwell taylorotwell merged commit 49801bb into master Jul 28, 2022
@taylorotwell taylorotwell deleted the ssr branch July 28, 2022 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants