Closed gronxb closed 2 weeks ago
this code can resolve the issue.
--- a/sst.config.ts
+++ b/sst.config.ts
@@ -17,6 +17,9 @@ export default $config({
new sst.aws.Remix("CuratorClip", {
transform: {
server: {
+ nodejs: {
+ install: ["@node-rs/argon2", "@node-rs/bcrypt"],
+ },
},
},
Problem
i am deploying a Remix app using SST. i am using oslo to incorporate
Bcrypt
andArgon2id
. this packages internally use the@node-rs
package. To successfully deploy on AWS Lambda, this packages need to be excluded from the esbuild bundling process, similar to howsharp
andpg-native
are handled.If the following Pull Request is merged, it may cause a conflict: #549. If the above PR and current PR are merged, we can achieve a successful deployment.
Related library https://github.com/napi-rs/node-rs
Closed #551