Skip to main content
NileJS SDK can be configured using both environment variables and a configuration object. If both are provided, the configuration object will take precedence. This document describes the available configuration options, and how to set them using either method.

SDK Configuration

The following configuration options are available at the overall SDK level:

Database Configuration

The db object configures the connection to Postgres, using settings compatible with the pg library.

Example Configurations

Basic configuration with environment variables

Basic configuration with configuration object

nile.ts

Production configuration

Cross-origin configuration