Skip to content

Commit a96cdf2

Browse files
committed
revert
1 parent d043fd5 commit a96cdf2

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

backend/vercel-build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
22

33
# Install dependencies with size optimization
4-
python3 -m pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
4+
pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
55

66
# Clean up pip cache to reduce size
7-
python3 -m pip cache purge || true
7+
pip cache purge || true
88

99
# Collect static files (even though we're not serving UI, Django needs this)
10-
python3 manage.py collectstatic --noinput
10+
python manage.py collectstatic --noinput
1111

1212
# Run migrations
13-
python3 manage.py migrate --noinput
13+
python manage.py migrate --noinput
1414

1515
# Create superuser if needed (uncomment if you want this)
16-
# echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'password') if not User.objects.filter(username='admin').exists() else None" | python3 manage.py shell
16+
# echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'password') if not User.objects.filter(username='admin').exists() else None" | python manage.py shell

backend/vercel.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
2-
"builds": [
3-
{
4-
"src": "api/wsgi.py",
5-
"use": "@vercel/python",
6-
"config": {
7-
"maxLambdaSize": "15mb"
8-
}
2+
"functions": {
3+
"api/wsgi.py": {
4+
"maxDuration": 30
95
}
10-
],
6+
},
117
"routes": [
128
{
139
"src": "/(.*)",
1410
"dest": "api/wsgi.py"
1511
}
16-
]
12+
],
13+
"build": {
14+
"env": {
15+
"PYTHONPATH": "."
16+
}
17+
},
18+
"outputDirectory": "."
1719
}

0 commit comments

Comments
 (0)