Having trouble with gitlab ci. My pages is not displaying anything

pages:
script:
- npm install
- npm run build
- rm -rf public
- mv build public

artifacts:
paths:
- public

only:
- master

stage: deploy

I manage to fix my issue. I forgot to add the homepage url in my package.json. All good now