[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-25 07:11:54 +00:00
committed by GitHub
parent 84d311802f
commit 90bd276ad4
7 changed files with 23 additions and 12 deletions

View File

@@ -220,7 +220,11 @@ export const addDomainToCompose = async (
throw new Error(`The service ${serviceName} not found in the compose`);
}
const httpLabels = createDomainLabels(appName, domain, domain.customEntrypoint || "web");
const httpLabels = createDomainLabels(
appName,
domain,
domain.customEntrypoint || "web",
);
if (domain.customEntrypoint == null && https) {
const httpsLabels = createDomainLabels(appName, domain, "websecure");
httpLabels.push(...httpsLabels);
@@ -304,7 +308,7 @@ export const createDomainLabels = (
const {
host,
port,
customEntrypoint,
customEntrypoint,
https,
uniqueConfigKey,
certificateType,

View File

@@ -112,8 +112,15 @@ export const createRouterConfig = async (
const { appName, redirects, security } = app;
const { certificateType } = domain;
const { host, path, https, uniqueConfigKey, internalPath, stripPath, customEntrypoint } =
domain;
const {
host,
path,
https,
uniqueConfigKey,
internalPath,
stripPath,
customEntrypoint,
} = domain;
const routerConfig: HttpRouter = {
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
service: `${appName}-service-${uniqueConfigKey}`,