fix: test vercel
This commit is contained in:
parent
fd9ab06383
commit
d3b54bfa7f
|
@ -1,5 +0,0 @@
|
|||
venv/
|
||||
.venv/
|
||||
.env
|
||||
__pycache__/
|
||||
|
|
@ -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.
|
@ -1 +0,0 @@
|
|||
python-3.10
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "index.py",
|
||||
"use": "@vercel/python",
|
||||
"config": { "runtime": "python3.10" }
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "index.py"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue