From 84d7bb0add56aa274b6a05ac8601a707cd4c42a1 Mon Sep 17 00:00:00 2001 From: Janpeter Visser <30029041+madhura68@users.noreply.github.com> Date: Wed, 13 May 2026 22:29:34 +0200 Subject: [PATCH] fix(caddy): val terug op nginx-grammar voor Caddyfile syntax-highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shiki 1.29 bundelt geen 'caddyfile' grammar — runtime error "Language 'caddyfile' is not included in this bundle". Nginx-grammar is syntactisch het dichtst bij (directives + nested braces + reverse_proxy lijkt op location-blocks), dus levert acceptabele kleuring zonder dependency toe te voegen. Echte Caddyfile-grammar zou via een externe TextMate JSON moeten worden geladen — later. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/caddy/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/caddy/page.tsx b/app/caddy/page.tsx index eb8d580..d50604c 100644 --- a/app/caddy/page.tsx +++ b/app/caddy/page.tsx @@ -16,8 +16,10 @@ export default async function CaddyPage() { let configError: string | null = null try { const raw = await execAgent('caddy_show_config') + // shiki 1.29 bundelt geen caddyfile-grammar; nginx is syntactisch het + // dichtst bij (directives + braces + reverse_proxy lijkt op locations) configHtml = await codeToHtml(raw || '# (empty)', { - lang: 'caddyfile', + lang: 'nginx', theme: 'github-dark', }) } catch (err) {