Wrangler vs Page rule for trailing slash redirect

Hi there!
I have a website on workers, my wrangler file has force-trailing-slash param. Cloudflare creates 307 redirect from non-trailing-slash to a trailing-slash version.

I want it to be 301 redirect, but I am not sure how to configure a page rule this way and also wouldn't it create confusion between wrangler and page rule trying to do the same thing? Or one of them has priority?

Also, same goes for
http
to https redirect. I have always use HTTPS toggle on, but it uses 307 redirect. Should I create a page rule with a desired 301 for this matter? What should I do with always use HTTPS in that case, leave it be or turn it off?
^^
Was this page helpful?