Merge pull request #6 from madhura68/fix/caddy-shiki-lang
Fix /caddy 'Language caddyfile not included' shiki error
This commit is contained in:
commit
0514810115
1 changed files with 3 additions and 1 deletions
|
|
@ -16,8 +16,10 @@ export default async function CaddyPage() {
|
||||||
let configError: string | null = null
|
let configError: string | null = null
|
||||||
try {
|
try {
|
||||||
const raw = await execAgent('caddy_show_config')
|
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)', {
|
configHtml = await codeToHtml(raw || '# (empty)', {
|
||||||
lang: 'caddyfile',
|
lang: 'nginx',
|
||||||
theme: 'github-dark',
|
theme: 'github-dark',
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue