seawolf2357 commited on
Commit
8e5c751
·
verified ·
1 Parent(s): b5828c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -775,14 +775,15 @@ def deploy_to_vercel(code: str):
775
  "Content-Type": "application/json"
776
  }
777
 
778
- # 배포할 파일 데이터 구조
779
- files = {
780
- "index.html": {
781
- "content": code
 
782
  }
783
- }
784
 
785
- # 배포 요청 데이터 (projectId 제거)
786
  deploy_data = {
787
  "name": project_name,
788
  "files": files,
 
775
  "Content-Type": "application/json"
776
  }
777
 
778
+ # 배포할 파일 데이터 구조를 배열로 수정
779
+ files = [
780
+ {
781
+ "file": "index.html",
782
+ "data": code
783
  }
784
+ ]
785
 
786
+ # 배포 요청 데이터
787
  deploy_data = {
788
  "name": project_name,
789
  "files": files,