Tripagra commited on
Commit
2b472be
·
1 Parent(s): 964103b

Fix Vercel build configuration for output directory

Browse files
Files changed (1) hide show
  1. vercel.json +6 -25
vercel.json CHANGED
@@ -1,29 +1,10 @@
1
  {
2
- "version": 2,
3
- "builds": [
4
- {
5
- "src": "api/**/*.py",
6
- "use": "@vercel/python"
7
- },
8
- {
9
- "src": "frontend/package.json",
10
- "use": "@vercel/static-build",
11
- "config": {
12
- "distDir": "frontend/dist"
13
- }
14
  }
15
- ],
16
- "routes": [
17
- {
18
- "src": "/api/(.*)",
19
- "dest": "/api/$1"
20
- },
21
- {
22
- "src": "/(.*)",
23
- "dest": "/frontend/$1"
24
- }
25
- ],
26
- "env": {
27
- "PYTHON_VERSION": "3.9"
28
  }
29
  }
 
1
  {
2
+ "buildCommand": "cd frontend && npm ci && npm run build",
3
+ "outputDirectory": "frontend/dist",
4
+ "installCommand": "pip install -r requirements.txt",
5
+ "functions": {
6
+ "api/**/*.py": {
7
+ "runtime": "python3.9"
 
 
 
 
 
 
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
  }