Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ deploying_flag = False # 전역 플래그
|
|
40 |
def get_deployment_update(code_md: str):
|
41 |
clean = remove_code_block(code_md)
|
42 |
result = deploy_to_vercel(clean)
|
|
|
43 |
|
44 |
-
m = re.search(r"https?://[\\w-]+\\.vercel\\.app", result)
|
45 |
if m: # ── 성공 ──
|
46 |
url = m.group(0)
|
47 |
md = (
|
@@ -566,7 +566,8 @@ def deploy_and_show(code_md: str):
|
|
566 |
result = deploy_to_vercel(clean)
|
567 |
|
568 |
# ③ 결과 해석 ---------------------------------------
|
569 |
-
url_match = re.search(r"https?://[\\w
|
|
|
570 |
if url_match:
|
571 |
url = url_match.group(0)
|
572 |
|
@@ -802,7 +803,8 @@ def handle_deploy_legacy(code):
|
|
802 |
|
803 |
# 3) 배포 URL 추출
|
804 |
import re
|
805 |
-
match = re.search(r'https?://[\\w
|
|
|
806 |
if match:
|
807 |
deployment_url = match.group(0)
|
808 |
# 4) iframe으로 직접 렌더링
|
|
|
40 |
def get_deployment_update(code_md: str):
|
41 |
clean = remove_code_block(code_md)
|
42 |
result = deploy_to_vercel(clean)
|
43 |
+
m = re.search(r"https?://[\\w.-]+\\.vercel\\.app", result)
|
44 |
|
|
|
45 |
if m: # ── 성공 ──
|
46 |
url = m.group(0)
|
47 |
md = (
|
|
|
566 |
result = deploy_to_vercel(clean)
|
567 |
|
568 |
# ③ 결과 해석 ---------------------------------------
|
569 |
+
url_match = re.search(r"https?://[\\w.-]+\\.vercel\\.app", result)
|
570 |
+
|
571 |
if url_match:
|
572 |
url = url_match.group(0)
|
573 |
|
|
|
803 |
|
804 |
# 3) 배포 URL 추출
|
805 |
import re
|
806 |
+
match = re.search(r'https?://[\\w.-]+\\.vercel\\.app', result)
|
807 |
+
|
808 |
if match:
|
809 |
deployment_url = match.group(0)
|
810 |
# 4) iframe으로 직접 렌더링
|