Skip to content

Commit

Permalink
add certs to package assets
Browse files Browse the repository at this point in the history
  • Loading branch information
KatyH820 committed Apr 30, 2024
1 parent fe96629 commit 0f37ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/server/serverless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const serverlessConfiguration: AWS = {
define: { "require.resolve": undefined },
platform: "node",
concurrency: 10,
assets: [{ path: "certs/", glob: "**/*.pem" }],
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/functions/cron/getWeeklyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const sslConfig = isProduction
? {
rejectUnauthorized: false,
ca: fs.readFileSync(
path.join(__dirname, "certs", "global-bundle.pem"),
path.join(__dirname, "certs", "global-bundle.pem"), // deployment structure is diff
),
}
: null;
Expand Down

0 comments on commit 0f37ca8

Please sign in to comment.