Open casesandberg opened 3 years ago
Could it be that you forgot to prefix the QUIRREL_BASE_URL with https:// ? I think the VERCEL_URL doesn‘t include that. I should also add better error descriptions for this, I suppose 😅
Having it directly tied to the VERCEL_URL also creates problems for the Production deployment (aka jobs will always be executed against the version that they were deployed with, even if you fixed an important bug in a newer one).
What‘s the reason you tied QUIRREL_BASE_URL to VERCEL_URL?
Ah, I see what you are saying now, I will try that.
We pretty much just want to be able to test in the preview builds that Vercel creates (they are auto-generated URLs that we do not have control of) as well as it working in production. Maybe there is a better way to do this?
I‘ll sleep over it and get back to you with an answer tomorrow.
Great, thanks! I will think on it too.
Alright! After a good night's sleep on the issue, I guess this is the way to go:
VERCEL_URL
. On these, you actually want the jobs to run against the same version that they were deployed with, and that makes sense :)I'll add a heuristic to the Quirrel client that automatically prefixes URLs with https://
if no protocol is present. That way, it will work with VERCEL_URL
.
Does that sound about right for your usecase? Anything else you think I missed, that I should consider with this?
Yes, that would be fantastic! That looks like it would solve are problem.
Everything works fine in dev, however we are getting a 500 when trying to use it in production. When scheduling a task I am getting:
Not sure how to go about debugging this. We have the
QUIRREL_TOKEN
andQUIRREL_ENCRYPTION_SECRET
set like the documentation says. We are setting theQUIRREL_BASE_URL
to reference the VERCEL_URL so that it will work on both our preview builds and our production builds.