fix(auth): resolve login redirect loop in Docker #11

Merged
marcel merged 5 commits from fix/login-redirect into main 2026-03-19 15:13:20 +01:00
Showing only changes of commit a52b8a0694 - Show all commits

View File

@@ -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 }
});