fix: internalURL doesn't apply when using the CDN endpoint