Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 529 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 529 Bytes

dev-server

A simple http server with proxy capabilities.

install

npm install -g https://github.com/lexmihaylov/dev-server.git

configurations

You just need to create a .devserverrc file inside your project folder.

example:

{
    "proxies": [
        {
            "context": "/api",
            "config": {
                "target": "http://example.com",
                "changeOrigin": true
            }
        }
    ],
    "port": 8080,
    "logLevel": "dev",
    "errorHandler": true
}