Closed xuqssq closed 3 months ago
Your only change was using env("CF_PUBLIC_ACCESS_URL") ? env("CF_PUBLIC_ACCESS_URL").replace(/^https?:\/\//, "") : "",
instead of env("CF_PUBLIC_ACCESS_URL").replace(/^https?:\/\//, "")
. Is this correct?
Thanks for reporting it. I will create a PR for it.
🐛 Bug Report
If after copying the middleware.js code, the Docker build does not work properly and the thumbnails in the Strapi plugin store also fail, this could be due to some configuration errors or environment variables not being set correctly.
This is my modified version, it works properly and is the result I expected!