#I can't get fresh install with jetstream + ssr to work

1 messages · Page 1 of 1 (latest)

hardy quartz
#

Inertia/vue3

Here is the repo: https://github.com/Rubrasum/ssr-demo

I ran these commands and attempted to go to localhost, but did not see the page source I would expect for SSR. It looked like CSR (where app div looked like this <div id="app" data-page="{&quot;component&quot;:&quot;Welcome&quot;,&q......

I looked at docs for jetstream and inertia/ssr, but most sections seem to suggest it should work out of the box. I'm having a hard time finding any issues in github for something this broad "On fresh install with sail, I can't access ssr". Not sure how to phrase that best.

Its similar to this but I see no errors. All I see is that it appears to be CSR. https://github.com/laravel/jetstream/issues/1320

Commands to install

2161  composer create-project laravel/laravel ssr-demo
 2162  cd ssr-demo/
 2163  composer require laravel/jetstream
 2164  php artisan jetstream:install inertia --ssr
 2165  php artisan sail:install
 2166  sail up -d
 2167  sail npm install
 2168  sail npm run build
 2169  sail artisan migrate
 2170  sail artisan inertia:start-ssr
 2171  git init
 2172  git add .
 2173  git commit -m "Initial commit"
 2174  gh repo create ssr-demo --public --source=. --remote=origin --push
 2175  sail artisan vendor:publish --provider="Inertia\ServiceProvider
 2176  sail artisan vendor:publish --provider="Inertia\ServiceProvider"
 2177  sail artisan inertia:start-ssr
 2178  sail npm run build
 2179  sail artisan inertia:start-ssr
 2180  sail artisan optimize
 2181  sail npm run build
 2182  sail artisan inertia:start-ssr
GitHub

Contribute to Rubrasum/ssr-demo development by creating an account on GitHub.

GitHub

Jetstream Version 3.2.2 Jetstream Stack Inertia Laravel Version 10.13.2 PHP Version 8.2.1 Database Driver & Version MySQL Description Client side hydration is not working as expected on a fresh...

plush basin
#

It looked like CSR (where app div looked like this <div id="app" data-page="{&quot;component&quot;:&quot;Welcome&quot;,&q......
That would be the case for both SSR and CSR. So that's not an indication if SSR works or not

hardy quartz
plush basin
#

Check the contents of the div