serve

Starts a Frontity server in production mode.

npx frontity serve [options]

This frontity serve command will use the files generated by frontity buildโ€‹

Arguments

[options]

Option

Description

--port <port>

Runs the server on a custom port. Default is 3000.

-s, --https

Runs the server using https.

-h, --help

Output usage information

Examples

  • Starts a server (using the code in the build folder generated by the npx frontity build command) using https and port 3002

npx frontity serve --https --port 3002