mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
This PR addresses [issue #2133](https://github.com/baptisteArno/typebot.io/issues/2133) by allowing the Typebot builder and viewer to bind to IPv6 addresses when `HOSTNAME=::` is provided via environment variable. ✅ Changes made: - Updated `scripts/builder-entrypoint.sh` and `scripts/viewer-entrypoint.sh` - Respect `HOSTNAME` and `PORT` environment variables if set - Default to `0.0.0.0` and `3000` if not defined 🧪 Tested: - Successfully deployed on Amazon EKS IPv6-only cluster - Server binds correctly on `[::]:3000` 🧑💻 Contributors: - [@silvadavitor](https://github.com/silvadavitor) - [@RanielHaendchen](https://github.com/RanielHaendchen) (assisted with cluster testing and validation) 
10 lines
356 B
Bash
10 lines
356 B
Bash
#!/bin/bash
|
|
|
|
cd apps/builder;
|
|
node -e "const { configureRuntimeEnv } = require('next-runtime-env/build/configure'); configureRuntimeEnv();"
|
|
cd ../..;
|
|
|
|
./node_modules/.bin/prisma migrate deploy --schema=packages/prisma/postgresql/schema.prisma;
|
|
|
|
NODE_OPTIONS=--no-node-snapshot HOSTNAME=${HOSTNAME:-0.0.0.0} PORT=${PORT:-3000} node apps/builder/server.js;
|