Update app.py
Browse files
app.py
CHANGED
@@ -783,14 +783,14 @@ def deploy_to_vercel(code: str):
|
|
783 |
}
|
784 |
]
|
785 |
|
786 |
-
# 프로젝트 설정
|
787 |
project_settings = {
|
788 |
"devCommand": None,
|
789 |
"installCommand": None,
|
790 |
"buildCommand": None,
|
791 |
"outputDirectory": ".",
|
792 |
"rootDirectory": None,
|
793 |
-
"framework": "
|
794 |
}
|
795 |
|
796 |
# 배포 요청 데이터
|
@@ -799,7 +799,7 @@ def deploy_to_vercel(code: str):
|
|
799 |
"files": files,
|
800 |
"target": "production",
|
801 |
"projectSettings": project_settings,
|
802 |
-
"framework": "
|
803 |
}
|
804 |
|
805 |
deploy_response = requests.post(deploy_url, headers=headers, json=deploy_data)
|
|
|
783 |
}
|
784 |
]
|
785 |
|
786 |
+
# 프로젝트 설정 수정 - vite 프레임워크 사용
|
787 |
project_settings = {
|
788 |
"devCommand": None,
|
789 |
"installCommand": None,
|
790 |
"buildCommand": None,
|
791 |
"outputDirectory": ".",
|
792 |
"rootDirectory": None,
|
793 |
+
"framework": "vite" # 허용된 프레임워크 중 'vite' 사용
|
794 |
}
|
795 |
|
796 |
# 배포 요청 데이터
|
|
|
799 |
"files": files,
|
800 |
"target": "production",
|
801 |
"projectSettings": project_settings,
|
802 |
+
"framework": "vite" # 여기도 'vite'로 설정
|
803 |
}
|
804 |
|
805 |
deploy_response = requests.post(deploy_url, headers=headers, json=deploy_data)
|