Skip to content

Commit

Permalink
plz work sst
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Sep 13, 2024
1 parent a27502f commit ac93784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/cloud/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { execSync } from "node:child_process";
import path from "node:path";

execSync("cargo watch -x 'run --bin mx-cloud'", {
execSync("cargo watch -x 'run -p mx-cloud --bin lambda'", {
stdio: "inherit",
shell: "/bin/zsh",
cwd: path.join(process.cwd(), ".."),
Expand Down
7 changes: 5 additions & 2 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,16 @@ export default $config({
...($dev
? {
runtime: "nodejs20.x",
handler: "live.handler",
handler: "apps/cloud/live.handler",
}
: {
handler: "bootstrap",
architecture: "arm64",
runtime: "provided.al2023",
bundle: path.join(process.cwd(), "target", "lambda", "lambda"),
// SST/Pulumi is having problems with `dependsOn` so we force their hand.
bundle: cloudBuild.stdout.apply(() =>
path.join(process.cwd(), "target", "lambda", "lambda"),
),
}),
memory: "128 MB",
environment: {
Expand Down

0 comments on commit ac93784

Please sign in to comment.