Captain
CCConvex Community
•Created by Captain on 8/8/2023 in #general
Where do convex functions run?
makes sense tho right? given this function is called inside a client component?
8 replies
CCConvex Community
•Created by Captain on 8/8/2023 in #general
Where do convex functions run?
the console.log of the following gets printed in the browser console.
im using the next.js example from the convex docs
8 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
do convex functions only run in the browser?
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
when setting up the integrated monorepo, you need to choose react as the base and next.js as the framework. this sets up 2 things.
apps
folder with 1 next.js app and a empty libs
folders54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
this is a good example. https://github.com/sitepoint-editors/nx-nextjs-monorepo
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
ohh i see. the example also uses packages in the integrated example.
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
if the tsconfig truly doesnt matter then i think a simple lib dedicated to convex(or as a data-access lib) should work
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
i see you went with the packages approach. i use the integrated approach. i will publish what i have on github tomorrow and send you the link
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
the only problem i have is that it works both with and without changing the tsconfig of the lib which makes me worry
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
what is needed is a node or ts(only tried node) lib. this lib exports the _generated folder of convex and all custom functions
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
i have created a solution for nx but i cant give guarantees when it comes to the tsconfig part
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
im gonna try turborepo
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
i have been using nx for a while. in my opinion its a great builder. however, right now, i have more use for the
realtimeness
of convex. using nx is absolutely not a must. i would however like to use a monorepo setup.54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
if i put the convex folder inside the next.js app dir, then other apps cant import the functions and generated code
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
would using urborepo be easier? im not married to nx
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
the 2nd point is where nx shines. apps can import any number of libs. 1 caveat, apps cant import other apps code. only lib code can be imported
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
i think that'd be very useful. especially with attracting pro dev teams
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
im well versed ins TS but im not as great with config and the ts compiler options. afraid this approach might have consequences in the broader NX monorepo.
54 replies
CCConvex Community
•Created by Captain on 8/7/2023 in #support-community
Convex in a NX monorepo
no there isnt. im not sure if you are familliar with NX. but in NX each app or lib has its own tsconfig which extends a base tsconfig. i could move the file to right convex dir and merge the changes
54 replies