> there will be copyright issues

Next.js is MIT-licensed. Cloudflare's rewrite is... also MIT licensed...

Of course. I'm referring to rewrites of other software; you can easily launder GPLed code this way, for example.