`rsconnect::deployApp()` - Bundle wrongly identified as API

Are you providing any arguments to rsconnect::deployApp()? I have appFiles in mind in particular. You might also try setting appPrimaryDoc explicitly.

Try calling rsconnect::writeManifest() with those arguments specified to see what you get without actually having to go through the deployment.