Answer the question
In order to leave comments, you need to log in
How to set up routing in browser-sync?
How to set up routing in browser-sync so that it handles paths like domain.com/app/:name/:id ?
It seems that there are only two ways, in routes and in middleware, but the first one does not work, and the second one is not clear at all, in res there is no send, no sendFile ... You need to write localhost: 8080 / app / 25 in the address bar like this , not localhost:8080/app?=25
Answer the question
In order to leave comments, you need to log in
browsersync can accept connect-modrewrite as a middleware, but I couldn't rewrite pagename to pagename.html. If you manage to use it, please unsubscribe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question