Browse Source

Bugfix/environment variable expansion when debugging in Visual Studio Code (#6977)

* Fix environment variable expansion

* Update changelog
pull/6968/merge
Thomas Kaul 16 hours ago
committed by GitHub
parent
commit
09794639b5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      .vscode/launch.json
  2. 4
      CHANGELOG.md
  3. 4
      tools/load-env.ts

12
.vscode/launch.json

@ -18,12 +18,20 @@
"autoAttachChildProcesses": true, "autoAttachChildProcesses": true,
"console": "integratedTerminal", "console": "integratedTerminal",
"cwd": "${workspaceFolder}/apps/api", "cwd": "${workspaceFolder}/apps/api",
"envFile": "${workspaceFolder}/.env", "env": {
"GHOSTFOLIO_ENV_FILE": "${workspaceFolder}/.env"
},
"name": "Debug API", "name": "Debug API",
"outFiles": ["${workspaceFolder}/dist/apps/api/**/*.js"], "outFiles": ["${workspaceFolder}/dist/apps/api/**/*.js"],
"program": "${workspaceFolder}/apps/api/src/main.ts", "program": "${workspaceFolder}/apps/api/src/main.ts",
"request": "launch", "request": "launch",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], "runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register",
"-r",
"${workspaceFolder}/tools/load-env.ts"
],
"skipFiles": [ "skipFiles": [
"${workspaceFolder}/node_modules/**/*.js", "${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js" "<node_internals>/**/*.js"

4
CHANGELOG.md

@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Extended the countries mapping in the data enhancer for asset profile data via _Trackinsight_ - Extended the countries mapping in the data enhancer for asset profile data via _Trackinsight_
- Removed the deprecated attributes (`assetClass`, `assetClassLabel`, `assetSubClass`, `assetSubClassLabel`, `countries`, `currency`, `dataSource`, `holdings`, `name`, `sectors`, `symbol` and `url`) from the holdings of the portfolio details endpoint response - Removed the deprecated attributes (`assetClass`, `assetClassLabel`, `assetSubClass`, `assetSubClassLabel`, `countries`, `currency`, `dataSource`, `holdings`, `name`, `sectors`, `symbol` and `url`) from the holdings of the portfolio details endpoint response
### Fixed
- Fixed the environment variable expansion in the `.env` file when debugging via _Visual Studio Code_
## 3.6.0 - 2026-05-28 ## 3.6.0 - 2026-05-28
### Added ### Added

4
tools/load-env.ts

@ -0,0 +1,4 @@
import { config } from 'dotenv';
import { expand } from 'dotenv-expand';
expand(config({ path: process.env.GHOSTFOLIO_ENV_FILE, quiet: true }));
Loading…
Cancel
Save