From 3f5617cc0bcee429e6e69e5b3365c9d107573a94 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 5 Jul 2024 15:37:51 +1000 Subject: [PATCH] redirect --- hakit/config.json | 2 +- hakit/server/routes/run-application.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hakit/config.json b/hakit/config.json index 8a80358..864a634 100644 --- a/hakit/config.json +++ b/hakit/config.json @@ -1,6 +1,6 @@ { "name": "Hakit", - "version": "1.0.23", + "version": "1.0.24", "slug": "hakit", "init": false, "ingress": true, diff --git a/hakit/server/routes/run-application.ts b/hakit/server/routes/run-application.ts index 2289b8b..a8d3de0 100644 --- a/hakit/server/routes/run-application.ts +++ b/hakit/server/routes/run-application.ts @@ -58,7 +58,7 @@ export async function runApplication(app: Express) { const nextJsBuilt = existsSync(join(APP_DIRECTORY, 'app', '.next')); // first check if the current path is the root level if (!nextJsBuilt && (_req.path === '/' || _req.path === '')) { - res.redirect('/config'); + res.redirect(data?.ingress_url + '/config'); } else { next(); }