Ismaestro / angular-example-app

Angular 17 Example App + Standalone Components + i18n + EsBuild
https://angular-example-app.netlify.app/
2.19k stars 1.21k forks source link

Demo app is SSR but repo isn't #55

Closed aomerk closed 4 years ago

aomerk commented 5 years ago

Demo app is rendered on server and page source shows it too. It is not just <app-root>...spinner</app-root> and kinda runs with JS disabled But I cloned the repo, ran npm install and npm run deploy , deployed page is just a normal SPR.

Ismaestro commented 5 years ago

Be sure to refresh de view-source page because of the cache. Should be SSR, it makes no sense a SPA after deploying an ssr function among other things...

Can you confirm it?

eliavmaman commented 4 years ago

It's happens to me too The local repo is not ssr:

  1. clone the repo.
  2. cd repo and npm i.
  3. npm run build:ssr.
  4. npm run serve:ssr

pnavigate to localhost:4000 and view page source. NOT SSR

Ismaestro commented 4 years ago

Did you reload the VIEW SOURCE page?

eliavmaman commented 4 years ago

Yes i did many times

eliavmaman commented 4 years ago

@Ismaestro i wrote you an email can u please have a look ?

from eliavmaman2@gmail.com

nicholas-davis commented 4 years ago

Hello @Ismaestro, first... great work! Love the setup.

My issue is my local is in SSR, but the deployed project to Firebase is not in SSR. Do you have any suggestions? Any help is much much appreciated

nicholas-davis commented 4 years ago

Nevermind, SSR SEO is not working locally either.

Did you ever get it to work @eliavmaman @aomerk?

nicholas-davis commented 4 years ago

Fixed... it was a cache issue