From 8f224e32930c931d08b4543d9254714f303b953e Mon Sep 17 00:00:00 2001
From: Baptiste Arnaud
Date: Tue, 14 Nov 2023 08:41:46 +0100
Subject: [PATCH] :pencil: Change community URLs, introduce Discord server
Closes #866
---
README.md | 11 ++++-------
apps/docs/docs/editor/blocks/integrations/webhook.mdx | 2 +-
apps/docs/docs/editor/blocks/logic/script.md | 2 +-
apps/docs/docusaurus.config.js | 4 ++--
apps/landing-page/components/common/Footer.tsx | 8 ++++----
apps/landing-page/components/common/Header/_data.tsx | 4 ++--
apps/landing-page/next.config.mjs | 5 +++++
apps/viewer/next.config.mjs | 9 +++++++++
8 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index f51d1919c..cb3a038fb 100644
--- a/README.md
+++ b/README.md
@@ -24,17 +24,15 @@ Typebot is an open-source chatbot builder. It allows you to create advanced chat
-
+
+
---
@@ -87,8 +85,7 @@ So you’ll be supporting open source software and getting a great service! 💙
You'll find a lot of resources to help you get started with Typebot in the [documentation](https://docs.typebot.io/).
-- Have a product-related question? Ask it to the [community](https://www.facebook.com/groups/typebot)
-- Have a technical question? Ask it on [Github discussions](https://github.com/baptisteArno/typebot.io/discussions/new/choose)
+- Have a question? Join the [Discord server](https://typebot.io/discord) and get instant help.
- Found a bug? [Create an issue](https://github.com/baptisteArno/typebot.io/issues/new)
## Self-hosting
diff --git a/apps/docs/docs/editor/blocks/integrations/webhook.mdx b/apps/docs/docs/editor/blocks/integrations/webhook.mdx
index 6765919e9..2b0697329 100644
--- a/apps/docs/docs/editor/blocks/integrations/webhook.mdx
+++ b/apps/docs/docs/editor/blocks/integrations/webhook.mdx
@@ -105,7 +105,7 @@ Then we can use these variables to display dynamic content in the next bubbles:
Possibilities are endless when it comes to API calls, you can litteraly call any API and fetch any data you want.
-Feel free to ask the [community](https://www.facebook.com/groups/typebot) for help if you struggle setting up a Webhook block.
+Feel free to ask the [community](https://typebot.io/discord) for help if you struggle setting up a Webhook block.
## Troubleshooting
diff --git a/apps/docs/docs/editor/blocks/logic/script.md b/apps/docs/docs/editor/blocks/logic/script.md
index be5190d1e..4ab933d47 100644
--- a/apps/docs/docs/editor/blocks/logic/script.md
+++ b/apps/docs/docs/editor/blocks/logic/script.md
@@ -28,4 +28,4 @@ if({{Category}} === 'qualified') {
}
```
-Do you need to do something but you're not sure how to? [Ask the community for help!](https://www.facebook.com/groups/typebot)
+Do you need to do something but you're not sure how to? [Join the Discord server](https://typebot.io/discord) and get instant help!
diff --git a/apps/docs/docusaurus.config.js b/apps/docs/docusaurus.config.js
index 25f84c73e..0281b755b 100644
--- a/apps/docs/docusaurus.config.js
+++ b/apps/docs/docusaurus.config.js
@@ -59,8 +59,8 @@ module.exports = {
title: 'Community',
items: [
{
- label: 'Facebook Group',
- href: 'https://www.facebook.com/groups/typebot',
+ label: 'Discord',
+ href: 'https://typebot.io/discord',
},
{
label: 'Twitter',
diff --git a/apps/landing-page/components/common/Footer.tsx b/apps/landing-page/components/common/Footer.tsx
index ae7584b80..213a1186b 100644
--- a/apps/landing-page/components/common/Footer.tsx
+++ b/apps/landing-page/components/common/Footer.tsx
@@ -12,7 +12,7 @@ import {
import { Logo } from 'assets/icons/Logo'
import { TextLink } from './TextLink'
-const facebookGroupUrl = 'https://www.facebook.com/groups/typebot'
+const discordServerUrl = 'https://typebot.io/discord'
const typebotLinkedInUrl = 'https://www.linkedin.com/company/typebot'
const typebotTwitterUrl = 'https://twitter.com/Typebot_io'
const baptisteTwitterUrl = 'https://twitter.com/baptisteArno'
@@ -54,12 +54,12 @@ export const Footer = () => {
Community
+
+ Discord
+
GitHub repository
-
- Facebook Group
-
Twitter
diff --git a/apps/landing-page/components/common/Header/_data.tsx b/apps/landing-page/components/common/Header/_data.tsx
index 761c970fe..72e9eef66 100755
--- a/apps/landing-page/components/common/Header/_data.tsx
+++ b/apps/landing-page/components/common/Header/_data.tsx
@@ -31,8 +31,8 @@ export const links = [
{
label: 'Community',
description:
- 'Join our facebook community and get insights on how to create high performing surveys',
- href: 'https://www.facebook.com/groups/262165102257585',
+ 'Join the Discord server and learn about chatbots best practices and get help from the community',
+ href: '/discord',
icon: ,
},
],
diff --git a/apps/landing-page/next.config.mjs b/apps/landing-page/next.config.mjs
index 099805ca7..32cc16c08 100644
--- a/apps/landing-page/next.config.mjs
+++ b/apps/landing-page/next.config.mjs
@@ -18,6 +18,11 @@ const nextConfig = {
destination: 'https://unpkg.com/typebot-js@2.1.3/dist/index.umd.min.js',
permanent: true,
},
+ {
+ source: '/discord',
+ destination: 'https://discord.com/invite/ymK8Q33d5Z',
+ permanent: true,
+ },
]
},
}
diff --git a/apps/viewer/next.config.mjs b/apps/viewer/next.config.mjs
index e65283823..7eadb47d3 100644
--- a/apps/viewer/next.config.mjs
+++ b/apps/viewer/next.config.mjs
@@ -31,6 +31,15 @@ const nextConfig = {
experimental: {
outputFileTracingRoot: join(__dirname, '../../'),
},
+ async redirects() {
+ return [
+ {
+ source: '/discord',
+ destination: 'https://discord.com/invite/ymK8Q33d5Z',
+ permanent: true,
+ },
+ ]
+ },
async rewrites() {
return {
beforeFiles: (process.env.LANDING_PAGE_URL