-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Deploy Flutter Web App
to GitHub Pages
#322
Comments
Should a different repo be created for this? Or should we create another workflow in this one? |
@LuchoTurtle good question. 👌
Fairly certain you can use this action: https://github.com/JamesIves/github-pages-deploy-action (we're already using it) Please let me know if you want to pair on this. 👥 🧑💻 |
Capturing the Running A far more realistic test is running it online: For reference the This should be our lower bound. i.e. if we go lower than this for the |
Will work on this 👍 Though I feel the need to point out that comparing a Though this doesn't mean we shouldn't strive to go for near-native performance on all fronts 👍 |
I'm stumped on why Github Pages don't properly serve the built files from When I run |
@LuchoTurtle yes, the hand-crafted But ... we need to do everything we can to get |
@LuchoTurtle it's a good sign that it works on The config for The fact that the |
The - name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./build/web # The folder the action should deploy. And I'm sure the folder exists because it's shown in the workflow. I've checked many links, including the ones below.
But this seems like Github Pages is not serving the files correctly. Because |
Could you try pushing everything to the branch |
As per https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#static-site-generators, they use |
A bit of Googling suggests a more targeted approach: https://github.com/bluefireteam/flutter-gh-pages 🤞 |
Is this error worth investigating? Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'. |
I guess I'll give this a whirl.
Apparently not -> https://stackoverflow.com/questions/69619035/error-with-permissions-policy-header-unrecognized-feature-interest-cohort |
Tried using bluefireteam/flutter-gh-pages but it's still not working. The same error appears... Uncaught ReferenceError: _flutter is not defined
at (index):42:7 I'll revert the changes and try to use |
Maybe
|
Hmm ... this is very peculiar. |
Going to populate https://github.com/dwyl/learn-github-pages now. |
Re-opening just to configure Cloudflare subdomain 👨💻 ⏳ |
loading ... https://dash.cloudflare.com/login?lang=en-US ⏳ |
https://github.com/dwyl/app/settings/pages Viewing the app at: https://app.dwyl.com/ @LuchoTurtle we're back to having the |
PR: Remove `--base-href /app/` for #322 when using subdomain app.dwyl.com
https://app.dwyl.com is working thanks to #324 thanks for reviewing+merging @LuchoTurtle ✅ |
Deployment worked without any issues: https://app-abz.pages.dev/#/ No improvement in perf: So I don't think it's worth pursuing this further (for now ...) 💭 |
Disabled the Cloudflare pages deployment integration: |
As noted in #316 (comment) and #315 (comment) 💬
deploying the
Flutter Web App
toFly.io
has proved to be aperformance
fail. 😕As noted by @LuchoTurtle in #315 (comment)
it
should
be possible to get a90+
PageSpeed
(LightHouse
) performance score for aFlutter Web App
... 💭However I've not been able to replicate the results on the
PageSpeed Insights
site:https://pagespeed.web.dev/report?url=https%3A%2F%2Fdit-tests.web.app
So that's something we need to understand first. 🔍
How do we ensure that the
PageSpeed
results are consistent?Can we run the tests as a
GitHub Action
and save the results somewhere we can review them? 🤔Todo
Flutter Web App
toGitHub Pages
-> [PR] Deploy to Github pages. #323app.dwyl.com
points to: https://dwyl.github.io/appThis looks like a decent starting point:
Why This Matters?
Why are we making such an effort on page load time instead of focussing on building our
App
? 🤷♂️I don't see this as "not building the app";
DevOps
is about delivering theApp
. 🍕Rather I see this is as complying with the first point on our Manifesto. 📜
If we invest weeks of our Dev time in building features 🧑💻 ⏳
and then the
App
takes ages to load forpeople
viewing it for the first time, 🐌it gives them a terrible first impression. 😢
I'm very happy to pick this up myself. ⏳
But if anyone
else
wants to help, it's much appreciated. 🙏The text was updated successfully, but these errors were encountered: