fix(auth): resolve login redirect loop in Docker #11
@@ -27,7 +27,8 @@ const userGroup: Handle = async ({ event, resolve }) => {
|
||||
|
||||
if (auth) {
|
||||
try {
|
||||
const response = await fetch('http://localhost:8080/api/users/me', {
|
||||
const apiUrl = env.API_INTERNAL_URL || 'http://localhost:8080';
|
||||
const response = await fetch(`${apiUrl}/api/users/me`, {
|
||||
headers: { Authorization: auth }
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user