nx/docs/react/api-web/builders/file-server.md
2020-11-17 19:31:08 -05:00

726 B

file-server

Serve a web application from a folder

Builder properties can be configured in workspace.json when defining the builder, or when invoking it. Read more about how to use builders and the CLI here: https://nx.dev/react/guides/cli.

Properties

buildTarget

Type: string

Target which builds the application

host

Default: localhost

Type: string

Host to listen on.

port

Default: 4200

Type: number

Port to listen on.

proxyUrl

Type: string

URL to proxy unhandled requests to.

ssl

Default: false

Type: boolean

Serve using HTTPS.

sslCert

Type: string

SSL certificate to use for serving HTTPS.

sslKey

Type: string

SSL key to use for serving HTTPS.