Skip to content

Commit

Permalink
redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonhochkins committed Jul 5, 2024
1 parent 75eea3b commit 3f5617c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hakit/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hakit",
"version": "1.0.23",
"version": "1.0.24",
"slug": "hakit",
"init": false,
"ingress": true,
Expand Down
2 changes: 1 addition & 1 deletion hakit/server/routes/run-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3f5617c

Please sign in to comment.