View Source Code

Rivet

Fetch Config

Provides Rivet-related config paramteres from the environment.

Request

Script does not accept any arguments.

Response

  • apiEndpoint
    string
  • gameId
    string
  • environmentId
    string

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.rivet.fetch_config({
  // Request body
});