Build backend in docker for production with env vars

This commit is contained in:
Ricardo Paes
2022-02-06 15:02:04 -03:00
parent 1e267507dd
commit 9a54297efd
6 changed files with 93 additions and 1 deletions

View File

@@ -46,7 +46,9 @@ export const initWbot = async (whatsapp: Whatsapp): Promise<Session> => {
const wbot: Session = new Client({
session: sessionCfg,
puppeteer: {
executablePath: process.env.CHROME_BIN || undefined
executablePath: process.env.CHROME_BIN || undefined,
// @ts-ignore
browserWSEndpoint: process.env.CHROME_WS || undefined
}
});