Closed damienwebdev closed 1 month 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.
Command
serve
Description
I would like to be able to use the dev-server to render my routes configured like:
/product/pixel_8.html
When using the
@angular-devkit/build-angular:dev-server
just as I can when using the@angular-devkit/build-angular:application
builder.Describe the solution you'd like
I want to use my Angular application in my dev server in the exact same way as I do in my production express server. This discrepancy between my development environment and my production application is jarring, is backwards-incompatible with existing Angular behavior from 2-17, and is even against Vite's guidance about routing when doing SSR -- see: https://vitejs.dev/guide/ssr.html
Describe alternatives you've considered
The solutions proposed by @alan-agius4 are not helpful. The first isn't a solution, it is just the problem restated. The second isn't a solution, it's a "do this other thing instead".
Additionally, the commentary here https://github.com/angular/angular-cli/issues/27905#issuecomment-2185785230 is widely applicable to "non-html" routes like
.jpg
,.gif
, etc. Unfortunately, however, we're not talking about those, we're talking about.html
, the type of document that Angular is returning.This is irrelevant fluff. "Modern best practices favor clean, extensionless URLs" is an arbitrary take on the web's current state ignoring the history of browsers as document renderers.