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
(node:14574) UnhandledPromiseRejectionWarning: TypeError: Expected "8080" to be a string
at /Users/sdavico/Development/installer/webapp/node_modules/serve-handler/node_modules/path-to-regexp/index.js:194:13
at toTarget (/Users/sdavico/Development/installer/webapp/node_modules/serve-handler/src/index.js:68:9)
at applyRewrites (/Users/sdavico/Development/installer/webapp/node_modules/serve-handler/src/index.js:85:18)
at module.exports (/Users/sdavico/Development/installer/webapp/node_modules/serve-handler/src/index.js:547:24)
at Server.http.createServer (/Users/sdavico/Development/installer/webapp/node_modules/serve/bin/serve.js:147:58)
at Server.emit (events.js:160:13)
at parserOnIncoming (_http_server.js:618:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
This is due to using path-to-regexp to process the destination. Could we add support for full URLs?
The text was updated successfully, but these errors were encountered:
Yes, I was indeed aiming for the ability to proxy my API calls to an external address. In the end I had to switch to light-server, which supports this option. It would be nice too see this in serve-handler as well, if it's not out of scope w.r.t the purpose of the package.
I am launching
serve
with aserve.json
file. I have a rewrite like this:But this causes an error when I launch
serve
:This is due to using
path-to-regexp
to process the destination. Could we add support for full URLs?The text was updated successfully, but these errors were encountered: