From 9b82a045b811de0997a9c56658befbe7e9f78e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96MER=20FARUK=20CO=C5=9EKUN?= Date: Tue, 19 May 2026 17:33:28 +0300 Subject: [PATCH] fix(api): restore wrangler.toml main path relative to config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When --config apps/api/wrangler.toml is passed, wrangler resolves all paths in the toml relative to the config file's directory (apps/api/). So main must be ../../dist/apps/api/worker.js, not dist/apps/api/worker.js. Also remove [env.production] and [env.preview] blocks — they caused a "multiple environments" warning and risked deploying to the wrong env when no --env flag is passed. Co-Authored-By: Claude Sonnet 4.6 --- apps/api/wrangler.toml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/api/wrangler.toml b/apps/api/wrangler.toml index 7f8e609..f13b7f8 100644 --- a/apps/api/wrangler.toml +++ b/apps/api/wrangler.toml @@ -1,5 +1,5 @@ name = "minimalblock" -main = "dist/apps/api/worker.js" +main = "../../dist/apps/api/worker.js" compatibility_date = "2024-09-23" compatibility_flags = ["nodejs_compat"] @@ -20,8 +20,3 @@ enabled = true # TRENDYOL_API_SECRET # TRENDYOL_MOCK -[env.production] -name = "minimalblock" - -[env.preview] -name = "minimalblock-preview"