feat: use my.immich.app for externalDomain fallback (#17209)

* feat: use my.immich.app for externalDomain fallback

This is probably more useful than localhost.

* chore: remove port param

* fix: update expected value in tests

* fix: update expected value in e2e
This commit is contained in:
bo0tzz
2025-03-31 13:08:41 +02:00
committed by GitHub
parent 74f7fd4b53
commit e4f83680d9
6 changed files with 14 additions and 21 deletions

View File

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