diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d85df0b4..f91ec2042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 1.297.2 - 2023-08-05 +## 1.297.3 - 2023-08-05 ### Added diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index aa4e0944d..ce6c67c2b 100644 --- a/apps/api/src/app/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -74,7 +74,15 @@ import { StatusCodes } from 'http-status-codes'; PrismaModule, RedisCacheModule, ScheduleModule.forRoot(), + ...SUPPORTED_LANGUAGE_CODES.map((languageCode) => { + return ServeStaticModule.forRoot({ + rootPath: join(__dirname, '..', 'client', languageCode), + serveRoot: `/${languageCode}` + }); + }), ServeStaticModule.forRoot({ + exclude: ['/api*'], + rootPath: join(__dirname, '..', 'client'), serveStaticOptions: { setHeaders: (res) => { if (res.req?.path === '/') { @@ -94,9 +102,7 @@ import { StatusCodes } from 'http-status-codes'; res.statusCode = StatusCodes.MOVED_PERMANENTLY; } } - }, - rootPath: join(__dirname, '..', 'client'), - exclude: ['/api*'] + } }), SubscriptionModule, SymbolModule, diff --git a/package.json b/package.json index d8645cceb..cf63bdbf6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghostfolio", - "version": "1.297.2", + "version": "1.297.3", "homepage": "https://ghostfol.io", "license": "AGPL-3.0", "scripts": {