Commit
·
3539450
1
Parent(s):
a45aa7e
test NEXAUTH_URL with /api/auth
Browse files
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}"
|
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}/api/auth"
|
45 |
else
|
46 |
echo "WARNING: SPACE_ID not found"
|
47 |
fi
|