Update app.py
Browse files
app.py
CHANGED
@@ -775,7 +775,7 @@ def deploy_to_vercel(code: str):
|
|
775 |
"Content-Type": "application/json"
|
776 |
}
|
777 |
|
778 |
-
# 배포할 파일 데이터
|
779 |
files = [
|
780 |
{
|
781 |
"file": "index.html",
|
@@ -783,11 +783,23 @@ def deploy_to_vercel(code: str):
|
|
783 |
}
|
784 |
]
|
785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
# 배포 요청 데이터
|
787 |
deploy_data = {
|
788 |
"name": project_name,
|
789 |
"files": files,
|
790 |
-
"target": "production"
|
|
|
|
|
791 |
}
|
792 |
|
793 |
deploy_response = requests.post(deploy_url, headers=headers, json=deploy_data)
|
|
|
775 |
"Content-Type": "application/json"
|
776 |
}
|
777 |
|
778 |
+
# 배포할 파일 데이터 구조
|
779 |
files = [
|
780 |
{
|
781 |
"file": "index.html",
|
|
|
783 |
}
|
784 |
]
|
785 |
|
786 |
+
# 프로젝트 설정 추가
|
787 |
+
project_settings = {
|
788 |
+
"devCommand": None,
|
789 |
+
"installCommand": None,
|
790 |
+
"buildCommand": None,
|
791 |
+
"outputDirectory": ".",
|
792 |
+
"rootDirectory": None,
|
793 |
+
"framework": "other"
|
794 |
+
}
|
795 |
+
|
796 |
# 배포 요청 데이터
|
797 |
deploy_data = {
|
798 |
"name": project_name,
|
799 |
"files": files,
|
800 |
+
"target": "production",
|
801 |
+
"projectSettings": project_settings,
|
802 |
+
"framework": "other"
|
803 |
}
|
804 |
|
805 |
deploy_response = requests.post(deploy_url, headers=headers, json=deploy_data)
|