- collapse run log data blocks whose pretty-printed JSON exceeds a byte or line limit, with a per-block toggle and an expand/collapse-all button next to the Logs heading - align data blocks and toggles with the context/message column - add a "Copy logs" button that copies the filtered logs as plain text with every data block expanded - add GET /manifest.json with the app name, version and run log data limits (RUN_LOG_DATA_COLLAPSE_BYTES / RUN_LOG_DATA_COLLAPSE_LINES) - load the manifest in the client stale-while-revalidate: localStorage copy first, refetched per page load and on tab focus after a while - show the server version in the sidebar footer, with a reload hint when it differs from the client build Closes #3
47 lines
1.9 KiB
Bash
47 lines
1.9 KiB
Bash
## Optional overrides: copy to .env and uncomment the settings you need.
|
|
## Every setting has a default (shown below), so liqa runs without a .env file.
|
|
##
|
|
## Lines starting with "##" are descriptions.
|
|
## Lines starting with "# " are settings: remove the "# " to enable one.
|
|
|
|
## production in the Docker image; also selects the default CORS origins
|
|
# NODE_ENV=development
|
|
# PORT=3000
|
|
|
|
## Origins allowed to call the API cross-origin (comma separated). Default: the
|
|
## Vite dev server (http://localhost:5173) in development, the compose port
|
|
## (http://localhost:13000) in production
|
|
# CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
|
|
|
## SQLite database path
|
|
# DB_PATH=data/liqa.db
|
|
|
|
## Stored scenario files and run artifacts (downloads, failure dumps, traces)
|
|
# FILES_DIR=data/files
|
|
## Days to keep run artifacts before they are deleted
|
|
# FILE_RUN_EXPIRATION_DAYS=7
|
|
## When expired files are deleted (cron expression)
|
|
# FILE_CLEANUP_CRON=0 3 * * *
|
|
|
|
## Close open sessions that have been idle for longer than this many minutes
|
|
# SESSION_IDLE_TIMEOUT_MINUTES=30
|
|
## Delete closed sessions whose updatedAt is older than this many days
|
|
# SESSION_DELETE_CLOSED_DAYS=7
|
|
|
|
## Playwright trace recording for scenario runs: on | retain-on-failure | off
|
|
## (traces often reach ~10 MB per run; can be overridden per run in the run modal)
|
|
# PLAYWRIGHT_TRACE_MODE=off
|
|
|
|
## Run log data blocks whose pretty-printed JSON exceeds either limit start
|
|
## collapsed in the UI (bytes, lines); served to the client via /manifest.json
|
|
# RUN_LOG_DATA_COLLAPSE_BYTES=256
|
|
# RUN_LOG_DATA_COLLAPSE_LINES=5
|
|
|
|
## Chromium binary to use instead of Playwright's own (not needed in Docker,
|
|
## which ships Playwright's chromium-headless-shell)
|
|
# PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
|
|
|
|
## Directory with the built client to serve at / (the Docker image sets it to
|
|
## "client"; leave unset to not serve the UI, e.g. when using the Vite dev server)
|
|
# CLIENT_DIR=client
|