Commit
·
64352a6
1
Parent(s):
41fa590
test NEXTAUTH_URL to SPACE_HOST
Browse files
docker-entrypoint-wrapper.sh
CHANGED
@@ -40,7 +40,8 @@ createdb -h /data/postgresql/run node || true
|
|
40 |
# Set NEXTAUTH_URL based on SPACE_HOST if available
|
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 |
else
|
45 |
echo "WARNING: SPACE_ID not found"
|
46 |
fi
|
|
|
40 |
# Set NEXTAUTH_URL based on SPACE_HOST if available
|
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
|