proxy connection errors no longer crash the server, fixes #37

This commit is contained in:
Lloyd Brookes
2016-05-31 09:31:44 +01:00
parent 4ae36ffe63
commit 497653d92e
4 changed files with 20 additions and 10 deletions

View File

@ -9,6 +9,7 @@
"rewrite": [
{ "from": "/css/*", "to": "/build/styles/$1" },
{ "from": "/npm/*", "to": "http://registry.npmjs.org/$1" },
{ "from": "/broken/*", "to": "http://localhost:9999" },
{ "from": "/:user/repos/:name", "to": "https://api.github.com/repos/:user/:name" }
]
}
@ -18,5 +19,6 @@
<ul>
<li><a href="/css/style.css">/css/style.css</li>
<li><a href="/npm/local-web-server">/npm/local-web-server</a></li>
<li><a href="/broken/">/broken/</a></li>
<li><a href="/75lb/repos/work">/75lb/repos/work</a></li>
</ul>