Skip to content

Before building

Rigel Kent edited this page Feb 28, 2021 · 2 revisions

Before building the project (creating the static files) you may need to specify a few building parameters in src/environments/environment.prod.ts:

// src/environments/environment.prod.ts

export const environment = {
  // Production or dev modes
  production: true,

  // If true, shows some information and a few controls for debugging
  // in the bottom right corner of the application window
  devLabel: true,

  // STUN/TURN servers for WebRTC
  // Can be an empty array: []
  // See https://developer.mozilla.org/en/docs/Web/API/RTCIceServer/urls
  iceServers: [
    {
      urls: 'stun:stun.stunprotocol.org'
    },
    {
      urls: 'stun:stun.framasoft.org'
    }
  ],

  // Signaling server URL
  // See https://github.com/coast-team/sigver
  signalingURL: 'wss://www.coedit.re:10443',

  // Whether MUTE should try to look for a Bot Storage
  // Can be an empty array: []
  // See https://github.com/coast-team/mute-bot-storage
  storages: [
    {
      secure: true, // If true: https & wss protocols are used
      host: 'www.coedit.re', // Server hostname or IP address
      port: 11443, // Server port
    },
  ],
}

Once the configurations are set, run npm run build command to build the project for production. The build artifacts will be stored in the dist/ directory.

Clone this wiki locally