I have followed the steps in this article to deploy flutter app as node.js app. My app directory in the server is: home/username/app/app,
and here is what I entered to create node.js app:
and when I visit the web app url that’s what I get:
How to solve it?
2
Answers
Web applications are specially used for server side requests.
You have to export your web page with the command "flutter build web" and then copy all the files generated and put them into public_html folder.
You need to generate Flutter web build files using the following command. Hit it on your terminal:
It will generate files at your_project/build/web/ location. You need to upload all the files to cPanel at public_html folder. It has index.html file, which will run in your browser with its dart javascript library. You don’t need any third server with Node.js or python.
Detailed explanation at: How to Deploy Flutter Web App on cPanel Shared Hosting