Merge pull request #6 from madhura68/fix/caddy-shiki-lang

Fix /caddy 'Language caddyfile not included' shiki error
This commit is contained in:
Janpeter Visser 2026-05-13 20:38:47 +00:00 committed by GitHub
commit 0514810115
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {