I have read this question, https://community.esri.com/t5/arcgis-api-for-javascript-questions/deploying-a-custom-web-map-app-on-..., but the answers did not address the question. I have also searched ESRI docs and done some Google searches, but I have not found documentation on deploying custom JS API apps to a Portal server, and there are no forum posts with satisfactory answers.
So, my question is simple. Is it possible to deploy a custom ArcGIS API for JavaScript app (NOT a Web App Builder or Experience Builder app) to a Portal or ArcGIS Online? I have read here, https://doc.arcgis.com/en/arcgis-online/reference/supported-items.htm#ESRI_SECTION1_6E84BE3C2FA542B9... that I can link an application to Portal, but I am assuming linking and hosting are not the same.