serve
Last updated
Was this helpful?
Last updated
Was this helpful?
Starts a Frontity server in production mode.
This frontity serve
command will use the files generated by
[options]
Option
Description
--port <port>
--https
--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
FRONTITY_SERVE_PORT
Runs the server on a custom port. Default is 3000
.
Example:
FRONTITY_SERVE_HTTPS
Runs the server using https.
Example:
Runs the server on a custom port. Default is 3000. Related environment variable:
Runs the server using https. Related environment variable:
If detected, and no --port <port>
option is defined for Frontity command, this environment variable value will be applied.