brianmmdev
brianmmdev
CCConvex Community
Created by Clever Tagline on 10/7/2024 in #support-community
Issues deploying to Fly.io
Rather, in a single command
26 replies
CCConvex Community
Created by Clever Tagline on 10/7/2024 in #support-community
Issues deploying to Fly.io
Is there a reason you need to do them at the same time?
26 replies
CCConvex Community
Created by Clever Tagline on 10/7/2024 in #support-community
Issues deploying to Fly.io
Personally I deploy to Convex separately in my own setup. I'm using GitHub Actions to run one script that deploys the Convex app, then another that deploys my Remix app to Fly
26 replies
CCConvex Community
Created by Clever Tagline on 10/7/2024 in #support-community
Issues deploying to Fly.io
Yeah there’s an api key that needs to be set as an environment variable to make the deploy work. I just stepped away. Mind if I follow up tomorrow morning?
26 replies
CCConvex Community
Created by Clever Tagline on 10/7/2024 in #support-community
Issues deploying to Fly.io
Convex deploys separate from your app that goes into Fly. Are you deploying manually via the CLI or in something like GH Actions?
26 replies
CCConvex Community
Created by brianmmdev on 8/22/2024 in #support-community
Where does `wrapDatabaseReader` come from?
Thanks again Jamie. This worked great!
9 replies
CCConvex Community
Created by brianmmdev on 8/22/2024 in #support-community
Where does `wrapDatabaseReader` come from?
That’s where I was able to deduce it from. Is there a way to NOT apply rules tho? Ideally u just want to inject the user object into the context so I can use it to secure queries and mutations individually
9 replies
CCConvex Community
Created by brianmmdev on 8/22/2024 in #support-community
Where does `wrapDatabaseReader` come from?
Thanks Jamie! I love the pattern described in this article where the user record gets injected into the context. Regarding the rules described in the article, is there a way to simply allow all operations and I can apply my own security logic in the wrapped query? Any example of documentation of how rules is constructed would be very helpful, as that seems to be missing from the article and I cant find anything in the convex-helpers repo. I think I got a working example of what rules would look like but it seems to require a table name as the object keys.
const rules = {
tableName1: {
read: async () => {
return true;
},
modify: async () => {
return true;
},
insert: async () => {
return true;
},
},
};

const db = wrapDatabaseReader({ user }, ctx.db, rules);
const rules = {
tableName1: {
read: async () => {
return true;
},
modify: async () => {
return true;
},
insert: async () => {
return true;
},
},
};

const db = wrapDatabaseReader({ user }, ctx.db, rules);
9 replies