Question

How to host Flutter Web with App Platform

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?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

alexdo
Site Moderator
Site Moderator badge
July 10, 2023

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!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel