From ab00ebee1ec65ab9c649df6403e3417b0789b8fa Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 15 Jun 2025 14:26:54 +0200 Subject: [PATCH] Bugfix/fix missing assetlinks.json for TWA (part 2) (#4938) * Fix missing assetlinks.json * Update changelog --- CHANGELOG.md | 4 ++++ apps/api/src/app/app.module.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 183a51664..c70752570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the language localization for Turkish (`tr`) - Upgraded the _Stripe_ dependencies +### Fixed + +- Fixed missing `/.well-known/assetlinks.json` for TWA + ## 2.170.0 - 2025-06-11 ### Added diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index ae6d2f40a..8f342eb43 100644 --- a/apps/api/src/app/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -103,7 +103,7 @@ import { UserModule } from './user/user.module'; RedisCacheModule, ScheduleModule.forRoot(), ServeStaticModule.forRoot({ - exclude: ['/api/*wildcard', '/sitemap.xml'], + exclude: ['/.well-known/*wildcard', '/api/*wildcard', '/sitemap.xml'], rootPath: join(__dirname, '..', 'client'), serveStaticOptions: { setHeaders: (res) => { @@ -126,6 +126,10 @@ import { UserModule } from './user/user.module'; } } }), + ServeStaticModule.forRoot({ + rootPath: join(__dirname, '..', 'client', '.well-known'), + serveRoot: '/.well-known' + }), SitemapModule, SubscriptionModule, SymbolModule,