I want to deliver optimized media files on my website, but have different cloud storages that we use for different environments. What is the best setup to use ImageKit on different environments in this case to avoid any impact on production?
To deliver optimized media files across different environments without impacting production, you can set up ImageKit in two ways:
- Separate External Storage & URL Endpoints – Create distinct external storage for staging and production, then assign each to its own URL endpoint. ImageKit allows you to create multiple URL endpoints and External Origins in a single ImageKit account. This ensures media delivery remains isolated between environments.
- Use a Sub-Account – If you need separate Media Libraries, account settings, and analytics for each environment, consider using a sub-account. This allows you to test and configure settings without affecting production. Sub-accounts are available on our enterprise plans.