angular / universal

Server-side rendering and Prerendering for Angular
MIT License
4.03k stars 482 forks source link

Setup dynamic build options for prerendering #3216

Closed dimakuba closed 10 months ago

dimakuba commented 11 months ago

🚀 Feature request

What modules are relevant for this feature request?

Description

Currently it's not possible to setup dynamic build options while prerendering, like baseHref, outputPath etc. I've tried to run prerendering with this command to setup dynamic baseHref, but it doesn’t work since the argument is not defined in prerender builder's schema: ng run <app-name>:prerender --base-href /test/

Describe the solution you'd like

Support dynamic build arguments: ng run <app-name>:prerender --browser-base-href /test/

Describe alternatives you've considered

As a workaround, I've created custom builder for prerendering which accepts dynamic build arguments

alan-agius4 commented 11 months ago

To change the base-href you need to set the option in the browser builder.

angular-automatic-lock-bot[bot] commented 9 months ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.