Flutter build web

broken image
broken image

But I personally like Cloudflare pages more. Vercel and Netlify are one of those great option you can go with. If you want to host your flutter web application, then there are many services you can find. Cloudflare is automatically initialized the environment and deploy your project in their global network of CDNs.Ĭheck out this article to know more about configure Cloudflare pages for static sites. In the build setting, set framework preset to None, build command should be empty as our site is prebuilt with peanut and in the build output directory, leave it empty.In the production branch, change it to production or gh-pages as per your peanut -b command above.Select your GitHub or GitLab account and choose your repository of your flutter project.Login to Cloudflare Pages and go to the pages section.You can now push these changes to the remote branch e.g.: GitHub and now we are ready to start our deployment. Now, if we check the production branch, then we can see the static sites resulting from the flutter build commands. Flutter pub global run peanut -b production

broken image