Dica-Developer / weplantaforest

Rewrite of "i plant a tree" iplantatree.org
http://dica-developer.github.io/weplantaforest/
GNU General Public License v3.0
7 stars 4 forks source link

implement SSR for SEO #768

Open Gab0rB opened 7 months ago

Fiehra commented 7 months ago

https://angular.io/guide/ssr

https://blog.logrocket.com/server-side-rendering-angular-16/

Fiehra commented 7 months ago

updating to angular 16 might be helpful for this

gerolsteinernaturell commented 4 months ago

Our ranking is not only poor in the organic search, but also in the adverts (Google cannot find any content -> ads are not displayed).

Fiehra commented 1 month ago

update to v17 angualr 17 has native SSR included

Fiehra commented 1 month ago

https://stackoverflow.com/questions/77582598/error-in-angular-server-side-rendering-ssr-with-ngx-leaflet-referenceerror

some packages 3rd party are throwing errors because of window usage in node environment

Fiehra commented 1 month ago

https://stackoverflow.com/questions/58080301/how-to-use-angular-universal-with-leaflet

Fiehra commented 1 month ago

https://stackoverflow.com/questions/77534244/local-storage-is-not-defined-in-angular-17

for local storage

also needs to be encapsulated in its own service

Fiehra commented 1 month ago

version update: angular v18

Fiehra commented 1 month ago

:cry: might need to refactor to standalone components to make leaflet work

Fiehra commented 1 month ago

https://github.com/sutin1234/angular-17-SSR--ngx-translate/tree/main/src

example repo with standalone components and SSR and ngx-translate

Fiehra commented 3 weeks ago

https://gitlab.com/fiehra/aeye

working example for leaflet SSR