Skip to content
On this page

Configuration

The UI configuration can be provided in different file formats, such as authup.ui.{conf,js,ts,...}.

The environment variables in the .env file variant can also be provided via runtime environment.

typescript
export default {
    /**
     * The environment of the application.
     */
    env: 'production',
    /**
     * The application port.
     */
    port: 3000,
    /**
     * The address where the API can be reached.
     */
    apiUrl: 'http://localhost:3001',
    /**
     * The public url of the user interface.
     */
    publicUrl: 'http://localhost:3000',
}
dotenv
env=production
port=3000
apiUrl=http://localhost:3001
publicUrl=http://localhost:3000
dotenv
NODE_ENV=production
PORT=3000
API_URL=http://localhost:3001
PUBLIC_URL=http://localhost:3000