No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Tags
    3. ssr
    Log in to post
    • S

      Injecting custom js lib into Vue instance
      Help • boot ssr • • SeRiusRod

      14
      0
      Votes
      14
      Posts
      305
      Views

      S

      Thank you very much for your help Dobbel.

      @dobbel said in Injecting custom js lib into Vue instance:

      You can make this work (web & mobile app ) 99,99% guaranteed with https://expressjs.com/ using a rest API.

      The Rest API, for talking with the frontend, I understand.

      If you need to go the socket way + docker , I could help but that’s a bit more complicated. I have used sockets & docker for all my apps ( mobile/pwa/spa).

      No. The socket was only implemented to be able to show in the frontend realtime info, without having to poll. While charging, things like charge level, voltage or power.
      With realtime voltage one can make an idea of the load it is on the grid supply. For one’s like me that have a shitty supply.
      And power, to be sure I’m not exceeding the contracted amount.

      I’ve read that some frameworks for NodeJs already integrate socketio for the frontend to backend integration. I should take a look in how they determine the endpoint address.

    • I

      SSR Deployment(Vercel / Netlify)
      Help • deployment ssr • • IO2021

      2
      0
      Votes
      2
      Posts
      472
      Views

      Hawkeye64

      Netlify only support next.js SSR deployment. I don’t know about vercel.
      https://www.netlify.com/blog/2020/12/07/announcing-one-click-install-next.js-build-plugin-on-netlify/

    • M

      debug ssr in VSCode
      Help • debugging ssr vscode • • mzamateo

      1
      0
      Votes
      1
      Posts
      154
      Views

      No one has replied

    • I

      SPA-SSR Deployment with Apache
      Help • apache express spa ssr • • Ivo

      4
      0
      Votes
      4
      Posts
      1177
      Views

      I

      An update:
      I noticed that the statics GET ignores the publicPath set on quasar.conf.js, so I tried:

      include in quasar.conf.js assetPublicPath: '/node/' -> nothing on src-ssr/index.js:
      2.1.app.use('js', express.static(path.join(__dirname, 'www/js'))) -> nothing
      2.2.app.use('*/js', express.static(path.join(__dirname, 'www/js'))) -> nothing template.html: if I include <base href="/node/"/> on the header (based on this stackoverflow answer), the images are loaded but not js, css…

      Probably this is simple and a newbie mistake, but thank you all for all the help you can give.