From c905119d82c23c100777ada58b6a30ff9b8a7271 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sun, 15 Mar 2026 14:56:20 -0300 Subject: [PATCH] =?UTF-8?q?fix(build):=20remove=20--webpack=20from=20prepu?= =?UTF-8?q?blish.mjs=20=E2=80=94=20fixes=20VPS=20app/server.js=20missing?= =?UTF-8?q?=20in=20npm=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 10 ++++++++++ docs/openapi.yaml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- scripts/prepublish.mjs | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dff2c45041..79360048fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ --- +## [2.5.8] - 2026-03-15 + +> Build fix: restore VPS connectivity broken by v2.5.7 incomplete publish. + +### 🐛 Bug Fixes + +- **fix(build)**: `scripts/prepublish.mjs` still used deprecated `--webpack` flag causing Next.js standalone build to fail silently — npm publish completed without `app/server.js`, breaking VPS deployment + +--- + ## [2.5.7] - 2026-03-15 > Media playground error handling fixes. diff --git a/docs/openapi.yaml b/docs/openapi.yaml index e9c7180d17..767bc0955b 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: OmniRoute API - version: 2.5.7 + version: 2.5.8 description: | OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible endpoint that routes requests to multiple AI providers with load balancing, diff --git a/package-lock.json b/package-lock.json index 7ca95ed33c..5c069a966b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "omniroute", - "version": "2.5.7", + "version": "2.5.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "omniroute", - "version": "2.5.7", + "version": "2.5.8", "hasInstallScript": true, "license": "MIT", "workspaces": [ diff --git a/package.json b/package.json index facb3a021a..ffc5496946 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "omniroute", - "version": "2.5.7", + "version": "2.5.8", "description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.", "type": "module", "bin": { diff --git a/scripts/prepublish.mjs b/scripts/prepublish.mjs index 6b6af8a7cb..58cd38e673 100644 --- a/scripts/prepublish.mjs +++ b/scripts/prepublish.mjs @@ -34,7 +34,7 @@ execSync("npm install", { cwd: ROOT, stdio: "inherit" }); // ── Step 3: Build Next.js ────────────────────────────────── console.log(" 🏗️ Building Next.js (standalone)..."); -execSync("npx next build --webpack", { cwd: ROOT, stdio: "inherit" }); +execSync("npx next build", { cwd: ROOT, stdio: "inherit" }); // ── Step 4: Verify standalone output ─────────────────────── const standaloneDir = join(ROOT, ".next", "standalone");