The Aleks
The Aleks
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Just like you’re inferring the branch names and using it to name the environment I’ve in the past used it to set the environment variable in another environment. It’s nice for the scenarios where the primary trigger for convex is vercel git based deploys. Alternatively I could setup a full GitHub actions deploy flow and, as you’re mentioning, deploy convex first and then use the url for subsequent steps
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
I still think, if possible, some kind of logic around branch names could be worth considering. It’ll allow preview environments to easily work in setups where there’s a separate backend that communicates with convex (more and more common these days with the AI and python craze)
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
This is super helpful though @ballingt - means I’m not going crazy and I can shortcut things in the morning
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
That would make sense
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Have you considered making the preview urls more predictable? Eg git name based
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
I can hardcode it for now - but the moment I start using the preview environments my backend and client will be writing to two different environments
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Yup - exactly
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
I’ll investigate again tomorrow, but it seems like it isn’t set on the backend when it’s deployed
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Didn’t realize it was a .env.local file it created
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Oh yeah - that’s what I meant
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
No description
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
.env.local works for the backend. But that isn’t present when I’m not running the app locally
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
There’s only what I’ve defined in environment variables inside of vercel - and what convex sets with the deploy key
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
But when I deploy to vercel
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Well yes that works
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Yeah, it’s server functions
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
Calling convex from tanstack start functions. I have some workflow logic that runs on tanstack and coordinates convex (and a vector db). It all works locally. (I just set the env variable in .env.local) But when I deploy it to vercel it complains about the VITE_CONVEX_URL not being set. Which makes sense since we’re setting it just for the the front end bundle when we build and deploy
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
(I’m using Tanstack and I’m calling tanstack through my serverless functions). VITE_CONVEX_URL isn’t set when I try to spin up a new http client
61 replies
CCConvex Community
Created by nikhildhoka on 11/25/2024 in #support-community
Backend URL Vercel
@jamwt I’ve set everything up with the convex vercel guide - the deploy key ensures the front end has an up to date convex url… But.. how do I get that to my backend?
61 replies
CCConvex Community
Created by RJ on 10/30/2023 in #support-community
Math.random unsupported while evaluating schema
I like the idea of doing effect through and through, but the maintenance overhead of that seems pretty steep. Especially with the upcoming "local first" and "tanstack" apis
73 replies