1.0.3 • Published 8 years ago

cra-server v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

CRA Server

Simple express static server with opt-in proxy.

How to

npm install --save-dev cra-server

add in yout package.json:

...
"scripts": {
  ...
  "serve": "cra-server"
  ...
}

use env variables

PORT=3000
STATIC_DIR=build
PROXY_PREFIX=/api
PROXY_URL=http://<api-server>

or as cli tool

cra-server -p 3000 -d ./build
  • -p, --port - specify port, by default is 3000
  • -d, --dir - by default is ./build
  • -url, --proxy-url - specify proxy url', optional
  • -prefix, --proxy-prefix - specify proxy prefix, optional
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago