andrewrreed HF staff commited on
Commit
83cd8b1
·
1 Parent(s): fa4eb55
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +2 -2
docker-entrypoint-wrapper.sh CHANGED
@@ -58,6 +58,7 @@ export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
58
  export HOSTNAME="0.0.0.0"
59
  export HOST="0.0.0.0"
60
  export PORT=3000
 
61
 
62
  # Start Next.js in the background
63
  ./web/entrypoint.sh node ./web/server.js \
@@ -65,8 +66,7 @@ export PORT=3000
65
  --hostname "0.0.0.0" \
66
  --port 3000 \
67
  --experimental-hostname-validation=false \
68
- --experimental-allow-all-hostnames=true \
69
- --experimental-https=true &
70
 
71
  # Wait a moment for the server to start
72
  sleep 5
 
58
  export HOSTNAME="0.0.0.0"
59
  export HOST="0.0.0.0"
60
  export PORT=3000
61
+ export NEXT_PUBLIC_BASE_URL="https://${SPACE_ID}.hf.space"
62
 
63
  # Start Next.js in the background
64
  ./web/entrypoint.sh node ./web/server.js \
 
66
  --hostname "0.0.0.0" \
67
  --port 3000 \
68
  --experimental-hostname-validation=false \
69
+ --experimental-https=false &
 
70
 
71
  # Wait a moment for the server to start
72
  sleep 5