Context:
Following up on a previous inquiry about Vercel Storage (Blob Store) and custom environments [ Cannot Connect Vercel Storage (Blob Store) to Custom Environment],
where it was confirmed that custom environments are not directly supported in the Storage settings UI. I’m now exploring alternative implementation possibilities.
Current Understanding:
- Vercel Storage UI only supports Development, Preview, and Production environments
- Custom environments (e.g., staging) cannot be selected in the Storage settings
- Storage connection strings are environment-specific
Questions:
-
Are there any workarounds or alternative methods to utilize Vercel Storage in custom environments, such as:
- Using environment variables to override storage configurations
- Programmatically setting storage endpoints
- Utilizing Production/Preview storage configurations in custom environments
-
If possible, what would be the recommended approach for implementing this, considering:
- Security implications
- Best practices for configuration management
- Potential limitations or risks
Project Information:
- Framework: Next.js
- Storage Type: Blob Store
- Custom Environment: staging
- Current Storage Configuration: Connected to Production environment