fix: remove invalid YAML escape in Traefik Host() label

\` is not a valid escape sequence in YAML double-quoted strings,
causing Coolify to fail parsing the dev-container compose on provision.
Backticks are literal characters in YAML double-quoted strings and
need no escaping — only the JS template literal escape (\`) is required.

Made-with: Cursor
This commit is contained in:
2026-04-30 18:52:34 -07:00
parent 8969371134
commit b21e6ea038

View File

@@ -159,7 +159,7 @@ function renderDevCompose(projectSlug: string, projectId: string): string {
const port = PREVIEW_BASE_PORT + i;
const router = `vibn-dev-${projectSlug}-${i}`;
const host = `preview-${i}-${projectSlug}-${token}.${PREVIEW_DOMAIN_BASE_RAW}`;
traefikLabels.push(`"traefik.http.routers.${router}.rule=Host(\\\`${host}\\\`)"`);
traefikLabels.push(`"traefik.http.routers.${router}.rule=Host(\`${host}\`)"`);
traefikLabels.push(`"traefik.http.routers.${router}.entrypoints=https"`);
traefikLabels.push(`"traefik.http.routers.${router}.tls=true"`);
traefikLabels.push(`"traefik.http.routers.${router}.tls.certresolver=letsencrypt"`);