Where am I going wrong with the www redirect?

What step am I missing when redirecting to www?
ssl cloudflare = Full (strict)

You have both a proxy directive and a return directive; if you’re trying to redirect all non-www requests to www, you need a completely separate server block.

ChatGPT Ghost-CLI - A fully loaded tool for installation and configuration I included this address. I asked him to solve the problem and he did :)