andrewrreed HF staff commited on
Commit
e9bdc69
·
1 Parent(s): 21af09f

fix NEXTAUTH_URL

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +4 -4
docker-entrypoint-wrapper.sh CHANGED
@@ -52,11 +52,11 @@ netstat -tulpn
52
  echo "-------------------------"
53
 
54
  # Set NEXTAUTH_URL based on SPACE_HOST if available
55
- if [ -n "$SPACE_HOST" ]; then
56
- echo "Setting NEXTAUTH_URL to https://${SPACE_HOST}"
57
- export NEXTAUTH_URL="https://${SPACE_HOST}"
58
  else
59
- echo "WARNING: SPACE_HOST not found"
60
  fi
61
 
62
  # Update DATABASE_URL to use TCP connection
 
52
  echo "-------------------------"
53
 
54
  # Set NEXTAUTH_URL based on SPACE_HOST if available
55
+ if [ -n "$SPACE_ID" ]; then
56
+ echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
57
+ export NEXTAUTH_URL="https://huggingface.co/spaces/${SPACE_ID}"
58
  else
59
+ echo "WARNING: SPACE_ID not found"
60
  fi
61
 
62
  # Update DATABASE_URL to use TCP connection