m2sd / nuxt-laravel

Nuxt module for integration with the Laravel framework
MIT License
100 stars 11 forks source link

SSR #5

Open s-fog opened 4 years ago

s-fog commented 4 years ago

Hi. Whats the point to use nuxt, if i cant use ssr. Maybe someday u realize universal mode?

WARN nuxt-laravel currently only supports 'spa' mode

mentAl-maZe commented 4 years ago

@s-fog I am currently working on an SSR version, but i am a little short on time at the moment so this might take a while. I plan on releasing a preview version at the end of april to mid may.

s-fog commented 4 years ago

Thanks. We will wait!

GautierDele commented 4 years ago

Would love that too, thanks @mentAl-maZe !

GautierDele commented 4 years ago

Any update on this ? I tried contributing but I didn't quite understand what was needed in order for this to work

mentAl-maZe commented 4 years ago

Sry, i'm currently a bit swamped with work... My next project, however, makes use of the module and i'll use this to continue development (that's where the previous date estimate came from, sadly the finalisation of the previous project took longer than expected)... I'll post here as soon as i have updates regarding SSR capabilities.

To answer your question: In order for this to work there needs to be a running Node server parallel to a running PHP server which would have to proxy calls accordingly

I plan on expanding on the companian extension laravel-nuxt to accomplish this.

Namely give the possibility to specify a custom PHP server for both this module as well as the inverse, so that this can be set up for you in production.

GautierDele commented 4 years ago

Hello @mentAl-maZe, I'm afraid that's not accessible for me. I don't know Typescript unfortunately. Sorry for being pushy but I don't really know any package on the web that did the work of yours. Do you have any update on this task ?

Thanks, Gautier

mentAl-maZe commented 4 years ago

Hi @GautierDele, I'm truly sorry about the constant delays... I have to deal with a problematic client at the moment which leaves little time for my FOSS work... :disappointed:

However I have been tinkering a bit, I'll release an beta version of the module and the (now required) companion extension m2s\laravel-nuxt over the weekend.

However it's in a very early stage and not yet ready for production (not thoroughly tested, only partial test coverage)

GautierDele commented 4 years ago

Hello @mentAl-maZe,

Thanks a lot for you time, I truelly understand you ahah i know it could be sometime complicated with clients.

You can count on me about testing this feature.

I think this package could be a great for many developpers that arn't aware of it existence, this is why i'm trying to help maintaining the package. Don't hesitate mentionning me on issues / feature request 😉

mentAl-maZe commented 4 years ago

Hi @GautierDele,

Thanks for your support and your patience.

Sadly i didn't get it to work yet but i pushed the feature branch i'm currently working on so you can checkout my approach (also consider the feature branch on laravel-nuxt for this).

I'll keep you posted about updates in this thread... i hope i can invest a day during the weekend, that should do the trick