Infomaniak fork of the mattermost web client modified to work with our internal API as part of the kSuite.
- Node 16
- Yarn
Add an NPM_TOKEN
env var with a Github token (read:packages scope)
Create a .env file with the following variables
WEBCOMPONENT_ENDPOINT=https://web-components.storage.infomaniak.com/current
WEBCOMPONENT_API_ENDPOINT=https://welcome.infomaniak.com
MANAGER_ENDPOINT=https://manager.infomaniak.com
LOGIN_ENDPOINT=https://login.infomaniak.com
Modify your hosts file located at /etc/hosts
and add this line : 127.0.0.1 infomaniak.local.preprod.dev.infomaniak.ch
Must be done, otherwise your application won't be able to read cookies set to infomaniak.com
We are using yarn berry with workspace tools for monorepo support building and better module caching between builds
yarn
yarn workspace @infomaniak/mattermost-types build
yarn workspace @infomaniak/mattermost-client build
yarn workspace @mattermost/components build
yarn dev-server:webapp
yarn build:webapp
Cannot find module '../build/Release/canvas.node'
fix :
brew install pkg-config cairo pango libpng jpeg giflib librsvg