Commit
·
e9bdc69
1
Parent(s):
21af09f
fix NEXTAUTH_URL
Browse files
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 "$
|
56 |
-
echo "Setting NEXTAUTH_URL to https
|
57 |
-
export NEXTAUTH_URL="https
|
58 |
else
|
59 |
-
echo "WARNING:
|
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
|