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

Commit

Permalink
fix: no such file or directory, open 'resource.enc'
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 15, 2024
1 parent 03fb3d0 commit 0d7f4b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1304,14 +1304,17 @@ export class Function extends Component implements Link.Linkable {
dev,
bootstrapData,
Function.encryptionKey().base64,
]).apply(([environment, dev, bootstrap, key]) => {
args.bundle,
]).apply(([environment, dev, bootstrap, key, bundle]) => {
const result = environment ?? {};
result.SST_RESOURCE_App = JSON.stringify({
name: $app.name,
stage: $app.stage,
});
result.SST_KEY = key;
result.SST_KEY_FILE = "resource.enc";
if (!bundle) {
result.SST_KEY = key;
result.SST_KEY_FILE = "resource.enc";
}
if (dev) {
result.SST_REGION = process.env.SST_AWS_REGION!;
result.SST_FUNCTION_ID = name;
Expand Down

0 comments on commit 0d7f4b1

Please sign in to comment.