You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Custom image parameters (works with Bunny Optimizer)
198
199
queryParams: {
199
200
width: '300',
@@ -214,21 +215,23 @@ collections: {
214
215
media: {
215
216
// Optional folder prefix
216
217
prefix: 'media',
217
-
218
+
218
219
// How files are accessed
219
220
disablePayloadAccessControl: true
220
221
}
221
222
}
222
223
```
223
224
224
225
If `disablePayloadAccessControl` is not `true`:
226
+
225
227
- Files go through Payload's API
226
228
- Your access rules work
227
229
- Videos need MP4 fallback enabled
228
230
- MP4s are served instead of HLS
229
231
- Good for files that need protection
230
232
231
233
When `disablePayloadAccessControl: true`:
234
+
232
235
- Files go directly from Bunny CDN
233
236
- No access rules
234
237
- Videos use HLS streams (`playlist.m3u8`)
@@ -273,6 +276,7 @@ adminThumbnail: {
273
276
This approach only affects how images are displayed in the admin panel and doesn't purge the actual CDN cache. It appends a timestamp parameter (`?t=1234567890`) to image URLs, causing Bunny CDN to treat each timestamped URL as a unique cache entry.
274
277
275
278
Choose the approach that best fits your needs:
279
+
276
280
- Use **automatic cache purging** for immediate updates everywhere
277
281
- Use **timestamp-based cache busting** for a simpler setup that only affects the admin panel
0 commit comments