diff --git a/apps/landing-page/next.config.js b/apps/landing-page/next.config.mjs
similarity index 66%
rename from apps/landing-page/next.config.js
rename to apps/landing-page/next.config.mjs
index 7eefc693d..099805ca7 100644
--- a/apps/landing-page/next.config.js
+++ b/apps/landing-page/next.config.mjs
@@ -1,9 +1,9 @@
-/* eslint-disable @typescript-eslint/no-var-requires */
-const withBundleAnalyzer = require('@next/bundle-analyzer')({
- enabled: process.env.ANALYZE === 'true',
-})
+import { configureRuntimeEnv } from 'next-runtime-env/build/configure.js'
-module.exports = withBundleAnalyzer({
+configureRuntimeEnv()
+
+/** @type {import('next').NextConfig} */
+const nextConfig = {
transpilePackages: ['utils', 'models'],
async redirects() {
return [
@@ -20,4 +20,6 @@ module.exports = withBundleAnalyzer({
},
]
},
-})
+}
+
+export default nextConfig
diff --git a/apps/landing-page/package.json b/apps/landing-page/package.json
index 815a1ff05..e379fe7b2 100644
--- a/apps/landing-page/package.json
+++ b/apps/landing-page/package.json
@@ -27,7 +27,6 @@
"devDependencies": {
"@babel/core": "7.22.9",
"@chakra-ui/styled-system": "2.9.1",
- "@next/bundle-analyzer": "13.4.9",
"@typebot.io/tsconfig": "workspace:*",
"@types/aos": "3.0.4",
"@types/node": "20.4.2",
@@ -37,6 +36,8 @@
"dotenv-cli": "^7.2.1",
"eslint": "8.44.0",
"eslint-config-custom": "workspace:*",
+ "next-runtime-env": "^1.6.2",
+ "@typebot.io/env": "workspace:*",
"next-transpile-modules": "10.0.0",
"postcss": "8.4.26",
"prettier": "3.0.0",
diff --git a/apps/landing-page/pages/_document.tsx b/apps/landing-page/pages/_document.tsx
index 1dabc22bb..0f42f8757 100644
--- a/apps/landing-page/pages/_document.tsx
+++ b/apps/landing-page/pages/_document.tsx
@@ -20,6 +20,8 @@ class MyDocument extends Document {
{/* eslint-disable-next-line @next/next/no-css-tags */}
+ {/* eslint-disable-next-line @next/next/no-sync-scripts */}
+
diff --git a/apps/landing-page/public/favicon.png b/apps/landing-page/public/favicon.png
new file mode 100644
index 000000000..214afed84
Binary files /dev/null and b/apps/landing-page/public/favicon.png differ
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c2c4fbcc6..262947a06 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -464,9 +464,9 @@ importers:
'@chakra-ui/styled-system':
specifier: 2.9.1
version: 2.9.1
- '@next/bundle-analyzer':
- specifier: 13.4.9
- version: 13.4.9
+ '@typebot.io/env':
+ specifier: workspace:*
+ version: link:../../packages/env
'@typebot.io/tsconfig':
specifier: workspace:*
version: link:../../packages/tsconfig
@@ -494,6 +494,9 @@ importers:
eslint-config-custom:
specifier: workspace:*
version: link:../../packages/eslint-config-custom
+ next-runtime-env:
+ specifier: ^1.6.2
+ version: 1.6.2
next-transpile-modules:
specifier: 10.0.0
version: 10.0.0
@@ -8234,15 +8237,6 @@ packages:
react-dom: 17.0.2(react@17.0.2)
dev: false
- /@next/bundle-analyzer@13.4.9:
- resolution: {integrity: sha512-T/nSgXmhAx8Wy2qPGr9P3AcLwlFCMbA7DuYNCm7BdF10Sk74S0bJ1b3ygq+306dBwKRWV5Lj80sYzWzZ5/rwgQ==}
- dependencies:
- webpack-bundle-analyzer: 4.7.0
- transitivePeerDependencies:
- - bufferutil
- - utf-8-validate
- dev: true
-
/@next/env@13.4.3:
resolution: {integrity: sha512-pa1ErjyFensznttAk3EIv77vFbfSYT6cLzVRK5jx4uiRuCQo+m2wCFAREaHKIy63dlgvOyMlzh6R8Inu8H3KrQ==}
@@ -8482,6 +8476,7 @@ packages:
/@polka/url@1.0.0-next.21:
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
+ dev: false
/@popperjs/core@2.11.8:
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
@@ -14202,6 +14197,7 @@ packages:
/duplexer@0.1.2:
resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==}
+ dev: false
/eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
@@ -16098,6 +16094,7 @@ packages:
engines: {node: '>=10'}
dependencies:
duplexer: 0.1.2
+ dev: false
/h3@1.6.6:
resolution: {integrity: sha512-DWu2s11OuuO9suEkX99dXaJoxd1RgPXiM4iDmLdrhGV63GLoav13f3Kdd5/Rw7xNKzhzn2+F2dleQjG66SnMPQ==}
@@ -18840,6 +18837,7 @@ packages:
/mrmime@1.0.1:
resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==}
engines: {node: '>=10'}
+ dev: false
/ms@2.0.0:
resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}
@@ -22383,6 +22381,7 @@ packages:
'@polka/url': 1.0.0-next.21
mrmime: 1.0.1
totalist: 1.1.0
+ dev: false
/sisteransi@1.0.5:
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
@@ -23375,6 +23374,7 @@ packages:
/totalist@1.1.0:
resolution: {integrity: sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==}
engines: {node: '>=6'}
+ dev: false
/tough-cookie@4.1.2:
resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==}
@@ -24428,25 +24428,6 @@ packages:
engines: {node: '>=12'}
dev: true
- /webpack-bundle-analyzer@4.7.0:
- resolution: {integrity: sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==}
- engines: {node: '>= 10.13.0'}
- hasBin: true
- dependencies:
- acorn: 8.8.2
- acorn-walk: 8.2.0
- chalk: 4.1.2
- commander: 7.2.0
- gzip-size: 6.0.0
- lodash: 4.17.21
- opener: 1.5.2
- sirv: 1.0.19
- ws: 7.5.9
- transitivePeerDependencies:
- - bufferutil
- - utf-8-validate
- dev: true
-
/webpack-bundle-analyzer@4.8.0:
resolution: {integrity: sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==}
engines: {node: '>= 10.13.0'}
@@ -24773,6 +24754,7 @@ packages:
optional: true
utf-8-validate:
optional: true
+ dev: false
/ws@8.13.0:
resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==}