We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d66eab commit 91a99adCopy full SHA for 91a99ad
app/providers/cloudflareOnProd.ts
@@ -22,7 +22,7 @@ export default defineProvider({
22
params.push(`format=${format}`)
23
24
// Cloudflare Image Resizing needs full URL for same-origin API routes
25
- const fullSrc = src.startsWith('/') && siteUrl ? `${siteUrl}${src}` : src
+ const fullSrc = src.startsWith('/') && siteUrl ? `${siteUrl.replace(/\/$/, '')}${src}` : src
26
27
return { url: `/cdn-cgi/image/${params.join(',')}/${fullSrc}` }
28
},
0 commit comments