Default dashboard thumbnails to PNG

PNG screenshots are now the default for dashboard previews,
with SVG available by setting WEBTERM_SCREENSHOT_MODE=svg.
Documentation and tests updated accordingly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
GitHub Copilot
2026-02-18 17:53:33 +00:00
parent 25049dd1b0
commit 7a2a7877c4
4 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -240,8 +240,8 @@ func NewLocalServer(config Config, options ServerOptions) *LocalServer {
fontSize = DefaultFontSize
}
screenshotMode := strings.ToLower(strings.TrimSpace(os.Getenv(ScreenshotModeEnv)))
if screenshotMode != "png" {
screenshotMode = "svg"
if screenshotMode != "svg" {
screenshotMode = "png"
}
apps := append([]App{}, config.Apps...)
for _, app := range options.LandingApps {