You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
language-service, platform-server
Is this a regression?
Yes
Description
When adding SSR and Internationalization to a project, the pre-rendered routes are not served.
Most basic example with preconfigured ssr + localize + prerender: https://github.com/lostium/ssr-i18n-angular17
But this is also visible with a clean Angular CLI project adding SSR + localize + Prerender
To be clear: everything works as expected excluding Internationalisation and step 6 without the i18n does work http://localhost:4000/page-1 so its only after adding i18n that the pre-rendered page isn't being served.
Please provide a link to a minimal reproduction of the bug
After manually updating the dist/ssr-i18n-angular17/browser/en/page-1/index.html page and starting the server and you navigate to _http://localhost:4000/en/page-1_ that pre-rendered page isn't being served.
Please provide the environment you discovered this bug in (run ng version)
The combination of SSR and Internationalisation isn't well documented and the ng update, ng add doesn't change the code to make it work together. Developers now have to go outside the official Angular documentation to make it work.
Would be great as well that the official Angular documentation has a working version of all these feature combined together with complete code of a most basic & running example: SSR + Internationalisation + Pre-render.
The text was updated successfully, but these errors were encountered:
Which @angular/* package(s) are the source of the bug?
language-service, platform-server
Is this a regression?
Yes
Description
When adding SSR and Internationalization to a project, the pre-rendered routes are not served.
Most basic example with preconfigured ssr + localize + prerender: https://github.com/lostium/ssr-i18n-angular17
But this is also visible with a clean Angular CLI project adding SSR + localize + Prerender
Somewhere along the way Angular isn't serving the pre-rendered page when navigating to http://localhost:4000/en/page-1
To be clear: everything works as expected excluding Internationalisation and step 6 without the i18n does work http://localhost:4000/page-1 so its only after adding i18n that the pre-rendered page isn't being served.
Please provide a link to a minimal reproduction of the bug
https://github.com/lostium/ssr-i18n-angular17
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
The combination of SSR and Internationalisation isn't well documented and the ng update, ng add doesn't change the code to make it work together. Developers now have to go outside the official Angular documentation to make it work.
Would be great as well that the official Angular documentation has a working version of all these feature combined together with complete code of a most basic & running example: SSR + Internationalisation + Pre-render.
The text was updated successfully, but these errors were encountered: