Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix missing assetlinks.json for TWA (part 2) (#4938)

Thomas Kaulab00ebee1ec6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 183a516649..c707525702 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 ae6d2f40ab..8f342eb430 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,