Environment Variables


Runtime

RIVET_BACKEND_HOSTNAME

Default: 127.0.0.1

Defines the hostname to listen on.

Change this to 0.0.0.0 if you want to allow requests from outside of your machine.

RIVET_BACKEND_PORT

Default: 6420

RIVET_BACKEND_PUBLIC_ENDPOINT

Default: http://127.0.0.1:6420

The endpoint that this server can be connected to externally.

_RIVET_BACKEND_LOG_SPILT_OBJECT

Experimental

Set to 1 to enable logging some objects split in to individual keys.

_RIVET_BACKEND_LOG_ERROR_STACK

Experimental

Set to 1 to enable logging the full JavaScript stack trace for errors. This is different than trace.

_RIVET_BACKEND_LOG_SCRIPT_BODY

Experimental

Set to 1 to enable logging the body for script requests & responses. Intended primarily for debugging, since this may unintentionally expose sensitive data.

_RIVET_BACKEND_LOG_ACTOR_BODY

Experimental

Set to 1 to enable logging the body for actor requests & responses. Intended primarily for debugging, since this may unintentionally expose sensitive data.

_RIVET_BACKEND_LOG_SQL_QUERIES

Experimental

Set to 1 to enable logging SQL queries and the input parameters.

DATABASE_URL

Default: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable


CLI

VERBOSE

Experimental

Enable detailed logging.

_RIVET_BACKEND_ESBUILD_META

Experimental

Set to 1 to print detailed information about the output bundle.

_RIVET_BACKEND_ESBUILD_NO_MINIFY

Experimental

Set to 1 to disable minifying the output bundle.


CLI & Runtime

RIVET_BACKEND_TERM_COLOR

Default: unset

Values:

  • never Never use color
  • always Always use color

Defines if logs are printed with color. By default, Rivet attempts to automatically determine if your terminal supports this.

This also respects NO_COLOR


NO_COLOR

See here