Fixed a production bug where the CLI setup script was returning HTML instead of executing correctly. The root cause was a middleware redirect intercepting before the API endpoint. Also patched an SSR error in the share button.