Search code examples
fluttergitlab-ciflutter-webgitlab-pages

Flutter web not loading on Gitlab Pages


I managed to build and deploy my project to Gitlab pages, but when I try to access it, it's blank. Here is the repo: https://gitlab.com/grabtools/content_check
You can see in CI/CD the pipeline passed and the artifact is in public.

I'm new to web and just playing around with flutter so I have no idea what's wrong.

Thanks


Solution

  • Try to change your --base-href /repo_name/ and build like

      stage: deploy
      script:
        - flutter build web --release --web-renderer html --base-href /content_check/