2

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

3
  • the url: grabtools.gitlab.io/content_check Commented Oct 20, 2022 at 16:49
  • try to change the base-href with your projectName like --base-href /repo_name/ Commented Oct 20, 2022 at 16:54
  • could you be a bit more specific, like what file in the project and where in that file that I need to update. Sorry, I'm an iOS dev and have no idea what these things are @YeasinSheikh Commented Oct 20, 2022 at 16:55

1 Answer 1

3

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/
Sign up to request clarification or add additional context in comments.

1 Comment

Glad to help, you can find more about deployment/web

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.