1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

Replace plankaProdUrl with one set by environment. Remove hardcoded channel and unused variables.

This commit is contained in:
GlitchWitch 2023-12-23 10:48:50 -06:00
parent 4d12fbf72d
commit 22ffa77966

View file

@ -1,11 +1,8 @@
const axios = require('axios');
const slackPostUrl = 'https://slack.com/api/chat.postMessage';
const channelId = 'C06B6F4R9RT';
const plankaProdUrl = 'https://kanban.glitchsecure.com';
const plankaTestUrl = 'http://localhost:3000';
const plankaTestWebhookUrl = '';
const channelId = process.env.SLACK_CHANNEL_ID;
const slackAPIToken = process.env.SLACK_BOT_TOKEN;
const plankaProdUrl = process.env.BASE_URL;
async function sendSlackMessage(messageText) {
if (!slackAPIToken) {