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:
@@ -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"`);
|
||||
|
||||
Reference in New Issue
Block a user