diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d85de3e8..ed1751020b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -434,6 +434,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `stop_grace_period: 1m` to the _Ghostfolio_ service in your `docker-compose` file (see `docker-compose.yml`) +### Fixed + +- Fixed the source map paths in the build of the API when debugging via _Visual Studio Code_ + ## 3.78.0 - 2026-10-03 ### Added diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js index e59eee0bfb..29a7a84a1e 100644 --- a/apps/api/webpack.config.js +++ b/apps/api/webpack.config.js @@ -45,5 +45,17 @@ const buildOptions = { * @type {import('webpack').WebpackOptionsNormalized} */ module.exports = async () => ({ + output: { + devtoolModuleFilenameTemplate: ({ absoluteResourcePath }) => { + return `webpack:///${ + path.isAbsolute(absoluteResourcePath) + ? path.relative( + path.resolve(__dirname, '../..'), + absoluteResourcePath + ) + : absoluteResourcePath + }`; + } + }, plugins: [new NxAppWebpackPlugin(buildOptions)] });