fix: test vercel

This commit is contained in:
muhamad fais aizat 2025-05-16 00:18:28 +07:00
parent fd9ab06383
commit d3b54bfa7f
5 changed files with 2 additions and 25 deletions

View File

@ -1,5 +0,0 @@
venv/
.venv/
.env
__pycache__/

View File

@ -38,7 +38,8 @@ app.include_router(api_router)
# Middleware untuk CORS (Opsional, jika API digunakan oleh frontend)
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:5173"], # Ganti dengan domain frontend jika perlu
# allow_origins=["http://localhost:5173"], # Ganti dengan domain frontend jika perlu
allow_origins=["https://svr-tomato-price-prediction-frontend.vercel.app"], # Ganti dengan domain frontend jika perlu
allow_credentials=False,
allow_methods=["*"],
allow_headers=["*"],

Binary file not shown.

View File

@ -1 +0,0 @@
python-3.10

View File

@ -1,18 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "index.py",
"use": "@vercel/python",
"config": { "runtime": "python3.10" }
}
],
"routes": [
{
"src": "/(.*)",
"dest": "index.py"
}
]
}