#Inertia SSR in Laravel Vue Starter Kit

7 messages · Page 1 of 1 (latest)

ember rain
#

So I create new laravel app using vue starter kit (A week ago), But when i try to use SSR it just display the first page received and then I cant do anything

  1. I run with composer dev:ssr (no error)
  2. I open the login page (no error)
  3. I can fill the login form but cant check the remember me
  4. cant login
manic oak
#

Kind of over simplifying, but SSR doesn't do a whole lot differently from not using SSR. All it does is generate HTML on the server, so the HTML can be read by search engines and you'd potentially have a slightly faster load time. After the page has loaded Vue hydrates from the HTML, then it functions as it does without SSR, navigations etc are performed using XHR and JSON responses (the same way without SSR).
So to me it sounds like there's an error on your page, could you open your browser's devtools and check for errors or warnings there?

manic oak
#

Seems like there's someting funky going on. You're on port 8001, while the default would be 8000. There's also a bunch of scripts that are blocked

ember rain
#

The script is blocked because I disable Javascript in Setting

#

for port it just because 8000 is used for another app

manic oak
#

Oh, you want your app to fully work without JS? Yeah, that's likely going to be an issue and I'd assume not something that's tested/covered in the starter kit. Then you'd need to write your JS/components in such a way that it would work without relying on JS. So form elements that fully function without JS etc