From 090a7afdd7ba54fa94b756b776f9f0c29b4842ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 19 May 2026 11:05:07 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20nodejs=20entrypoint=20back=20to=20'main'?= =?UTF-8?q?=20=E2=80=94=20node-env=20splits=20on=20'.'=20giving=20funcname?= =?UTF-8?q?=3D'js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/deploy/console.yaml | 2 +- console/internal/runtime/entrypoint.go | 6 ++++-- console/ui/index.html | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/console/deploy/console.yaml b/console/deploy/console.yaml index 31c59e4..2314fcd 100644 --- a/console/deploy/console.yaml +++ b/console/deploy/console.yaml @@ -58,7 +58,7 @@ spec: serviceAccountName: fission-console containers: - name: console - image: naeel/fission-console:v1.3.93 + image: naeel/fission-console:v1.3.94 imagePullPolicy: Always ports: - containerPort: 8090 diff --git a/console/internal/runtime/entrypoint.go b/console/internal/runtime/entrypoint.go index 26d59f0..08139a6 100644 --- a/console/internal/runtime/entrypoint.go +++ b/console/internal/runtime/entrypoint.go @@ -11,8 +11,10 @@ package runtime func DefaultEntrypoint(lang string) string { switch lang { case "nodejs": - // main.js — явное расширение нужно для ESM-loader в node-env - return "main.js" + // "main" (без .js): node-env.specializeV2 делает split(".") для functionName + // с точкой → funcname="js" → ищет экспорт "js" → 500. + // Без расширения: funcname=undefined → берёт default export (module.exports = __invoke). + return "main" case "php": // Fission php-env: filename::functionName return "main.php::handler" diff --git a/console/ui/index.html b/console/ui/index.html index e705605..b35e6d7 100644 --- a/console/ui/index.html +++ b/console/ui/index.html @@ -103,7 +103,7 @@
NUBES
FISSION CONSOLE
-
v1.3.93
+
v1.3.94
@@ -626,7 +626,7 @@ psycopg2-binary" style="width:100%; box-sizing:border-box; font-family:monospace
- v1.3.93 + v1.3.94