How I can host my next js ssr app with api?

I created a project and after building it received the folder .next. Created a custom server.js. Uploaded the project to public_html. Doesn’t work