Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
sst.aws.Service: fix directory dev mode command spawns in
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 6, 2024
1 parent 4f98b2f commit 8da585e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/src/components/aws/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,12 @@ export class Service extends Component implements Link.Linkable {
dev: {
title,
autostart: true,
directory: output(args.image).apply((image) => {
if (!image) return "";
if (typeof image === "string") return "";
if (image.context) return path.dirname(image.context);
return "";
}),
...container.dev,
},
environment: {
Expand Down

0 comments on commit 8da585e

Please sign in to comment.