How Deploy in Netlify (ssr if possible)
-
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 your answer is not solving my issue: Broken links.
-
@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
-
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
-
-
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