Navigate to the CometChatWorkspace directory and replace the URL with your website URL in the CONSTS.js file
Copy
Ask AI
cd CometChatWorkspace
Copy
Ask AI
// EG: If URL is set as https://your_domain.com/widget// cometchatwidget.js will be available at https://your_domain.com/widget/cometchatwidget.jsmodule.exports = { URL: "https://your_domain.com/widget",}
Install the dependencies
Copy
Ask AI
npm install
Build the project using the below command
Copy
Ask AI
npm run build:custom
Copy all the files from the build directory to your website source code