fix(lp): 🐛 Landing page public env
This commit is contained in:
2
apps/landing-page/.env.docker
Normal file
2
apps/landing-page/.env.docker
Normal file
@ -0,0 +1,2 @@
|
||||
# Don't edit this file
|
||||
NEXT_PUBLIC_VIEWER_URL=
|
@ -2,7 +2,7 @@
|
||||
"name": "landing-page",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3002",
|
||||
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3002",
|
||||
"start": "next start",
|
||||
"build": "next build",
|
||||
"analyze": "cross-env ANALYZE=true next build"
|
||||
|
@ -25,6 +25,8 @@ class MyDocument extends Document {
|
||||
data-domain="typebot.io"
|
||||
src="https://plausible.baptistearno.com/js/plausible.js"
|
||||
></script>
|
||||
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
|
||||
<script src="/__env.js" />
|
||||
</Head>
|
||||
<body style={{ backgroundColor: '#171923' }}>
|
||||
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
|
||||
|
@ -16,6 +16,7 @@
|
||||
"build": "yarn docker:up && turbo run build",
|
||||
"build:builder": "cp apps/builder/.env.docker apps/builder/.env.production && ENVSH_ENV=./apps/builder/.env.production ENVSH_OUTPUT=./apps/builder/public/__env.js bash env.sh yarn turbo run build --scope=builder --include-dependencies",
|
||||
"build:viewer": "cp apps/viewer/.env.docker apps/viewer/.env.production && ENVSH_ENV=./apps/viewer/.env.production ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh yarn turbo run build --scope=viewer --include-dependencies",
|
||||
"build:landing-page": "cp apps/landing-page/.env.docker apps/landing-page/.env.production && ENVSH_ENV=./apps/landing-page/.env.production ENVSH_OUTPUT=./apps/landing-page/public/__env.js ENVSH_VERBOSE=true bash env.sh yarn turbo run build --scope=landing-page --include-dependencies",
|
||||
"test:builder": "cd apps/builder && yarn test",
|
||||
"lint": "turbo run lint",
|
||||
"db:migrate": "yarn workspace db migration:deploy"
|
||||
|
Reference in New Issue
Block a user