cloudinary
cloudinary copied to clipboard
feat: Alternative data centers and endpoints
Hello,
I received the following error Error: Cloud our-name-eu belongs to eu geo, please access via api-eu.cloudinary.com
According to the Cloudinary documentation
By default, Cloudinary accounts use US-based data centers. In these cases, the endpoint format is as shown at the beginning of this Overview.
If the majority of your users are located in Europe or Asia, Cloudinary can set up your account to use our Europe (EU) or Asia Pacific (AP) data center. In that case, your endpoints will take the form:
https://api-eu.cloudinary.com/v1_1/:cloud_name/:actionOR
https://api-ap.cloudinary.com/v1_1/:cloud_name/:action
The current endpoint can only access US data centers by default https://github.com/nuxt-community/cloudinary-module/blob/ba17279f96d115f88c84aa2e737c145267fc7d90/src/runtime/client.ts#L10
Proposed solution:
Add new configuration cloudinary option called region which can either be 'europe' or 'asia' otherwise leave out for default endpoint to US servers.