浏览代码

fix officialBotProxyUri

zahmis 4 年之前
父节点
当前提交
480f707328
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

+ 2 - 1
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -13,6 +13,8 @@ import BotTypeCard from './BotTypeCard';
 import DeleteSlackBotSettingsModal from './DeleteSlackBotSettingsModal';
 
 const botTypes = ['officialBot', 'customBotWithoutProxy', 'customBotWithProxy'];
+const officialBotProxyUri = process.env.OFFICIAL_BOT_PROXY_URL;
+
 
 const SlackIntegration = (props) => {
   const { appContainer } = props;
@@ -28,7 +30,6 @@ const SlackIntegration = (props) => {
   const [proxyServerUri, setProxyServerUri] = useState();
   const [connectionStatuses, setConnectionStatuses] = useState({});
   const [isLoading, setIsLoading] = useState(true);
-  const officialBotProxyUri = 'https://slackbot-proxy.growi.org/';
 
 
   const fetchSlackIntegrationData = useCallback(async() => {