Skip to content

Commit

Permalink
Changed redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoboeing committed Jun 30, 2023
1 parent 0a611e1 commit 2b21cd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ services:
QUEUE_NAMES: |
ExampleBullMQ;
ExampleBull
# BASE_PATH: /bull
# AUTH_REQUIRE: true
BASE_PATH: /bull
AUTH_REQUIRE: true
networks:
- app-network
depends_on:
Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ const authMiddleware =
}

ensureLoggedIn({
redirectTo:
environments.basePath === '/'
? '/login'
: `${environments.basePath}/login`
redirectTo: handleRoutePath('/login', environments.basePath)
})(req, _res, next)
}

Expand Down

0 comments on commit 2b21cd3

Please sign in to comment.