Maybe this is a feature request but how to use app platform to host flutter web app. I cant find a way to use a custom build command with the flutter sdk on app platform build machine (no permissions to install it etc.).
For now our company is using separate repository with static website, connected to app platform. (deployment pipeline = app repo -> app static site repo -> app platform)
Maybe this is a feature request?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hello @obiwanzenobi
It is indeed possible to host a Flutter web app on DigitalOcean’s app platform, but you would need to build it outside of the App Platform and upload the built files as a static site since the app platform doesn’t support Dart SDK yet, which is needed to perform the build server-side.
If you’re interested in allowing DigitalOcean’s App Platform to directly support Dart SDK, I would recommend suggesting this as a feature on our ideas page: https://ideas.digitalocean.com/.
Presently, your pipeline approach is the viable way to host a Flutter Web app on App Platform. You can read our How to Deploy a Static Site guide for a smooth process: https://docs.digitalocean.com/products/app-platform/how-to/manage-static-sites/.
Remember to keep your static site repository up-to-date with your Flutter web app repository.
Hope that this helps!