Skip to content

Commit

Permalink
Merge pull request #32 from nickpisciotta/main
Browse files Browse the repository at this point in the history
Remove trailing slash in container service host url if present
  • Loading branch information
djamaile authored Jan 10, 2024
2 parents ac5acaa + 966ef62 commit ebc537b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/programs/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export const AWSProgram = (opts: OptionValues) => {
DATABASE_PASSWORD: db?.masterPassword,
};

const CONTAINER_SERVICE_URL = containerService.url.apply(url =>
url.endsWith('/') ? url.slice(0, -1) : url
);
/* eslint-disable no-new */
new aws.lightsail.ContainerServiceDeploymentVersion(
`${opts.stack}-deployment`,
Expand All @@ -203,7 +206,7 @@ export const AWSProgram = (opts: OptionValues) => {
APP_CONFIG_app_baseUrl: containerService.url,
}
: {
BACKSTAGE_HOST: containerService.url,
BACKSTAGE_HOST: CONTAINER_SERVICE_URL,
}),
...providedEnvironmentVariables,
...(opts.withDb || opts.quickstart ? DB_ENVS : {}),
Expand Down

0 comments on commit ebc537b

Please sign in to comment.