andrewrreed HF staff commited on
Commit
ff5ba96
·
1 Parent(s): 3539450

Revert "test NEXAUTH_URL with /api/auth"

Browse files

This reverts commit 353945064e9b7bd308f4aa5be7524977cf3a03d7.

Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +1 -1
docker-entrypoint-wrapper.sh CHANGED
@@ -41,7 +41,7 @@ createdb -h /data/postgresql/run node || true
41
  if [ -n "$SPACE_ID" ]; then
42
  echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
43
  # export NEXTAUTH_URL="https://huggingface.co/spaces/${SPACE_ID}"
44
- export NEXTAUTH_URL="https://${SPACE_HOST}/api/auth"
45
  else
46
  echo "WARNING: SPACE_ID not found"
47
  fi
 
41
  if [ -n "$SPACE_ID" ]; then
42
  echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
43
  # export NEXTAUTH_URL="https://huggingface.co/spaces/${SPACE_ID}"
44
+ export NEXTAUTH_URL="https://${SPACE_HOST}"
45
  else
46
  echo "WARNING: SPACE_ID not found"
47
  fi