From acc37e7e445dba45d5a00dcab5c2d2f67dc81a1d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 04:27:58 +0000 Subject: [PATCH 1/4] Fix: Correct syntax in vercel.json Removes a duplicated `env` block and an extra closing bracket that was causing a JSON parsing error during Vercel deployments. --- vercel.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vercel.json b/vercel.json index 9c74b42..e403276 100644 --- a/vercel.json +++ b/vercel.json @@ -8,8 +8,4 @@ "env": { "SKIP_MT5_INIT": "1" } - ], - "env": { - "SKIP_MT5_INIT": "1" - } } From a596495adac4b0dfa1307edd7b468f9bf7fb5e0e Mon Sep 17 00:00:00 2001 From: Reynov Christian Date: Sun, 2 Nov 2025 14:17:02 +0800 Subject: [PATCH 2/4] Remove 'version' from dynamic list in pyproject.toml --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5d01c76..1571db1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,5 +32,4 @@ dependencies = [ "tzdata==2025.2", "urllib3==2.5.0", "Werkzeug==3.1.3" -] -dynamic = ["version"] +] \ No newline at end of file From 5695e9c079904d7c20b98fd0d4333147c5e27245 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 06:39:19 +0000 Subject: [PATCH 3/4] fix: Resolve Vercel deployment errors This commit addresses two issues that were causing Vercel deployments to fail: 1. **Corrected `vercel.json` syntax:** Removed a duplicated `env` block and an extra closing bracket to resolve a JSON parsing error. 2. **Resolved dependency conflict:** Upgraded `numpy` from version `1.23.5` to `1.26.0` in `pyproject.toml` to satisfy the version requirement for `pandas==2.3.1`. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5d01c76..eb62f81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "Jinja2==3.1.6", "MarkupSafe==3.0.2", "MetaTrader5==5.0.5120", - "numpy==1.23.5", + "numpy==1.26.0", "pandas==2.3.1", "pandas_ta==0.3.14b0", "python-dateutil==2.9.0.post0", From b4921f6dca1db18f410009a4086a598bc6cb03b8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 06:52:07 +0000 Subject: [PATCH 4/4] fix: Configure Vercel build and resolve deployment errors This commit provides a comprehensive fix for the Vercel deployment, addressing multiple issues: 1. **Added Build Configuration:** A `builds` section was added to `vercel.json` to explicitly instruct Vercel to use the `@vercel/python` builder for the `api/app.py` entry point. This resolves the 404 "NOT_FOUND" error. 2. **Corrected `vercel.json` Syntax:** Fixed a syntax error by removing a duplicated `env` block and an extra closing bracket, which previously caused a JSON parsing failure. 3. **Resolved Dependency Conflict:** Upgraded `numpy` to version `1.26.0` in `pyproject.toml` to satisfy the dependency requirements of `pandas`, resolving a package installation failure during the build process. --- vercel.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vercel.json b/vercel.json index e403276..95e36fa 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,10 @@ { + "builds": [ + { + "src": "api/app.py", + "use": "@vercel/python" + } + ], "routes": [ { "src": "/(.*)",