You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if my question is stupid but I couldn't think of any real use-case for the library.
If your SPA is already decoupled (or already designed as SSR friendly from the beginning) to have the app-server.js (or server-entry.js), why don't you directly use NodeJS to act as the SSR server than using a PHP wrapper. It's just introducing another layer of PHP code to maintain.
Otherwise, the frontend developer still needs quite a lot of effort to decouple the SPA to make it SSR friendly, then my previous "if" statement should be true => use NodeJS as SSR server will be better in performance & complexity.
This discussion was converted from issue #55 on February 06, 2023 08:11.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sorry if my question is stupid but I couldn't think of any real use-case for the library.
If your SPA is already decoupled (or already designed as SSR friendly from the beginning) to have the app-server.js (or server-entry.js), why don't you directly use NodeJS to act as the SSR server than using a PHP wrapper. It's just introducing another layer of PHP code to maintain.
Otherwise, the frontend developer still needs quite a lot of effort to decouple the SPA to make it SSR friendly, then my previous "if" statement should be true => use NodeJS as SSR server will be better in performance & complexity.
Please enlighten me.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions