Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How Deploy in Netlify (ssr if possible)

    Help
    3
    7
    63
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lou Rectoret last edited by

      Hi! I’ve been trying to deploy my app in Netlify. It is not working in ssr. I guess due the fact that SSR needs a server, and netlify is only for static.

      PROBLEM:
       I managed to run the app in SPA mode, but links are not working: error 404
      
      QUESTIONS about deployment in NETLIFY:
      - How can I make the links work in SPA???
      - Is there any way to make static or ssr working? (I need good SEO)
      
      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Lou Rectoret last edited by

        @Lou-Rectoret

        https://dev.to/mrbrowny/deploying-vue-quasar-app-on-netlify-3f4m

        L 1 Reply Last reply Reply Quote -1
        • L
          Lou Rectoret @dobbel last edited by

          @dobbel your answer is not solving my issue: Broken links.

          beets 1 Reply Last reply Reply Quote 0
          • beets
            beets @Lou Rectoret last edited by

            @Lou-Rectoret I haven’t deployed to netlify before, but as I understand it, they’re basically a CDN, so you cannot run SSR mode. However to fix your SPA problem, try this: https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps

            1 Reply Last reply Reply Quote 0
            • L
              Lou Rectoret last edited by Lou Rectoret

              Hey @beets I just tried but it’s not working:

              /info               http://www.masiesxviure.cat/info
              /info#objectius     http://www.masiesxviure.cat/info#objectius
              /info#com-funciona  /info#com-funciona
              
              

              You can check the link at the footer there: https://masies-x-viure.netlify.app/

              I’m lost. I don’t know what is missing 😞

              beets 1 Reply Last reply Reply Quote 0
              • beets
                beets @Lou Rectoret last edited by beets

                @Lou-Rectoret I think you just want:

                /*    /index.html   200
                

                Edit: and no other rules

                1 Reply Last reply Reply Quote 0
                • L
                  Lou Rectoret last edited by

                  For some reaslon if I drag’n’drop the dist folder to the drag’n’drop deploy area in netlify everything works fine. I don’t know what I’m doing wrong in the deploy specs 😞

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post