I just started working with Posit Connect and wanted to find out how one could deploy a React App.
Thanks to this post (Deploying React apps in RStudio Connect) and some work with sql.js I was capable deploying the app and loading the data appropriately. Yet, I also wanted to have a handleSubmit function for inserting data into the database, which then gets saved and retrieved by the Statistics component. The functions I used for that generally work, but it seems that the server.js script does not get handled by Posit connect so that it is able to conduct POST and GET requests. All in all, I do not see any console.log results appearing in my console when inspecting the app. I already made sure to server.js manually to the build folder I used as input for the reconnect-deployApp function.
All in all, I just want to know, if there is a specially way to handle the server.js script of a react app and its requests when using Posit. Has anybody already had any experience with that?