Alias: blitz s
Starts the Blitz production server.
This is a super thin wrapper over Next CLI to improve environment variable loading.
It does the following:
.env.production
.process.env.APP_ENV
to the env production
.next start
commandOption | Shorthand | Description | Default |
---|---|---|---|
--hostname | -H | Set the hostname to use for the server. | "localhost" |
--port | -p | Set the port you'd like the server to listen on. | 3000 |
--inspect | Enable the Node.js inspector | false | |
--env | -e | Set app environment name. Read more. | None |
Make sure to run blitz build
before running blitz start
blitz start
blitz start -H 127.0.0.1 -p 5632