Next.js Discord

Discord Forum

next.config.ts: Images Domain

Unanswered
Serengeti posted this in #help-forum
Open in Discord
SerengetiOP
Is there a way to make this as wildcard?

23 Replies

SerengetiOP
so we are using image/next and i am not the only one working here each dev have their own blob storage for their locals and also the staging/prod site

do we manually need to add each domains here so we can work?
so im still looking how i can add another wildcard domain
like this?
@Serengeti so im still looking how i can add another wildcard domain
wildcard domain, you seem to have already added
@Anay-208 | Ping in replies wildcard domain, you seem to have already added
SerengetiOP
yep but based on this i think the vercel storage wildcard will be enough lol

https://discord.com/channels/752553802359505017/766433464055496744/1372438036209729607
since it's current not possible to replace base url of vercel blob T_T
thanks
**.vercel-storage.com, should cover all vercel blobs, I believe.
Does vercel like create a different domain sometimes like vercel-storage.com, and sometimes 0null.app?
@Anay-208 | Ping in replies **.vercel-storage.com, should cover all vercel blobs, I believe. Does vercel like create a different domain sometimes like vercel-storage.com, and sometimes 0null.app?
SerengetiOP
other devs use different blob servers so they have different store ID, also staging and prod also have different blob storage so it have different store id too
while for 0null just for testing but ill remove it, i thought we can use custom domain in vercel blob
you can't really customize the subdomain.
SerengetiOP
i mean the domain it self
i thought we can change it.
ill try if masking will work
Wait, so do you mean about subdomain, or Top level domain?
SerengetiOP
i thought in the vercel blob settings we can set or use our own custom domain

example:

[id].vercel-storage.com -> media.ourdomain.com
just like [name].vercel.app -> ourdomain.com (custom domain)
I don't think there is an option like that
I don't recommend allowing all URLS here, because a bad actor could optimize images of their blob with it
SerengetiOP
we only upload what we have in url response of vercel/blog library
i think it is safe
Is it possible if you can tell what exactly are you trying to do? I can recommend a workflow for it