How to get the URL of an image in the storage by its id?
I have tried the http method but obviously I'm doing something wrong.
convex/http.ts
event-list.tsx
11 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
what is process.env.NEXT_PUBLIC_CONVEX_SITE_URL ?
It's the HTTP Actions URL. Is that not correct?
The one that ends with
.site
That is correct. Are you seeing the http action getting called in convex logs?
Your code looks fine to me, so i'm trying to figure out what might be going wrong
Ah that makes sense
Really appreciate your time!
Check the argument of
getImageUrl
Instead of {storageId}: {storageId: string}
you probably want storageId: string
Wow... Such a noobie mistake I'm so sorry.
No worries i also missed it
Thank you so much!