feat: use request host as default SSR domain (#19485)

fix: hostname and domain confusion

chore: e2e test
This commit is contained in:
bo0tzz 2025-07-01 05:24:44 +02:00 committed by GitHub
parent db0415bbcc
commit 3c6e9e1191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 4 deletions

View file

@ -44,7 +44,8 @@ export const getMethodNames = (instance: any) => {
return methods;
};
export const getExternalDomain = (server: SystemConfig['server']) => server.externalDomain || `https://my.immich.app`;
export const getExternalDomain = (server: SystemConfig['server'], defaultDomain = 'https://my.immich.app') =>
server.externalDomain || defaultDomain;
/**
* @returns a list of strings representing the keys of the object in dot notation