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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 21 deletions

View file

@ -265,7 +265,7 @@ describe(NotificationService.name, () => {
await expect(sut.sendTestEmail('', configs.smtpTransport.notifications.smtp)).resolves.not.toThrow();
expect(mocks.notification.renderEmail).toHaveBeenCalledWith({
template: EmailTemplate.TEST_EMAIL,
data: { baseUrl: 'http://localhost:2283', displayName: userStub.admin.name },
data: { baseUrl: 'https://my.immich.app', displayName: userStub.admin.name },
});
expect(mocks.notification.sendEmail).toHaveBeenCalledWith(
expect.objectContaining({
@ -306,7 +306,7 @@ describe(NotificationService.name, () => {
).resolves.not.toThrow();
expect(mocks.notification.renderEmail).toHaveBeenCalledWith({
template: EmailTemplate.TEST_EMAIL,
data: { baseUrl: 'http://localhost:2283', displayName: userStub.admin.name },
data: { baseUrl: 'https://my.immich.app', displayName: userStub.admin.name },
});
expect(mocks.notification.sendEmail).toHaveBeenCalledWith(
expect.objectContaining({