Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -223,9 +223,10 @@ def get_vercel_deployments():
|
|
223 |
|
224 |
def get_vercel_card(deployment, index):
|
225 |
"""Generate HTML card for a Vercel deployment"""
|
226 |
-
# URL
|
227 |
raw_url = deployment.get('url', '')
|
228 |
-
|
|
|
229 |
|
230 |
created = format_timestamp(deployment.get('created'))
|
231 |
name = deployment.get('name', 'Unnamed Project')
|
@@ -273,7 +274,7 @@ def get_vercel_card(deployment, index):
|
|
273 |
<strong>Created:</strong> π
{created}
|
274 |
</p>
|
275 |
<p style='margin: 8px 0;'>
|
276 |
-
<strong>URL:</strong> π {url}
|
277 |
</p>
|
278 |
</div>
|
279 |
<div style='margin-top: 20px;'>
|
|
|
223 |
|
224 |
def get_vercel_card(deployment, index):
|
225 |
"""Generate HTML card for a Vercel deployment"""
|
226 |
+
# URLμμ 첫 6κΈμλ§ μΆμΆνμ¬ vercel.app λλ©μΈ ꡬμ±
|
227 |
raw_url = deployment.get('url', '')
|
228 |
+
project_name = raw_url[:6] if len(raw_url) >= 6 else raw_url # 첫 6κΈμλ§ μΆμΆ
|
229 |
+
url = f"{project_name}.vercel.app" # μλ‘μ΄ URL νμ μ μ©
|
230 |
|
231 |
created = format_timestamp(deployment.get('created'))
|
232 |
name = deployment.get('name', 'Unnamed Project')
|
|
|
274 |
<strong>Created:</strong> π
{created}
|
275 |
</p>
|
276 |
<p style='margin: 8px 0;'>
|
277 |
+
<strong>URL:</strong> π https://{url}
|
278 |
</p>
|
279 |
</div>
|
280 |
<div style='margin-top: 20px;'>
|