How to prerender dynamic routes in angular 17?

Discussão em 'Angular' iniciado por saajan-pixel, Abril 16, 2025.

  1. saajan-pixel

    saajan-pixel Guest

    Not able to prerender routes that is not defined in angular.json file


    Implemented angular universal in angular 17 where routes are statically defined as:

    • "prerender": { "builder": "@nguniversal/builders:prerender", "options": { "routes": [ "/", "/test", "/test/4" ] }, in angular.json file.

    As per the angular documentation I need to define routes that need to be prerender for dynamic routes. But I have a list of data which on navigating can generate uncountable routes such as (/test/5, /test/6, /test/89.... etc.) So to define uncountable routes it is not feasible. So how to tackle such problem ?

    Continue reading...

Compartilhe esta Página