added nextjs detection and added exception for auth redirection to also work inside stackblitz

This commit is contained in:
dswbx
2025-01-11 16:23:20 +01:00
parent d8671355a6
commit b1a32f3705
6 changed files with 65 additions and 18 deletions

View File

@@ -3,6 +3,7 @@
import type { App } from "App";
import { tbValidator as tb } from "core";
import { StringEnum, Type, TypeInvalidError } from "core/utils";
import { getRuntimeKey } from "core/utils";
import type { Context, Hono } from "hono";
import { Controller } from "modules/Controller";
@@ -292,7 +293,8 @@ export class SystemController extends Controller {
return c.json({
version: this.app.version(),
test: 2,
app: c.get("app")?.version()
app: c.get("app")?.version(),
runtime: getRuntimeKey()
});
});