Deploy CI - Page Not Found

I have a manual deploy, It’s executed to Gitlab CI and works without problems, but the site link https://energy-flex.netlify.app appears: “Page Not Found (Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site)”, and the link published deploy https://5eadcd1ce0d61418413ed635–energy-flex.netlify.app/ works perfectly!

I have netlify.toml file in the project:

[build]
publish = “build”

[[redirects]]
from = “/*”
to = “/index.html”
status = 200

What is the problem is going on?

Hi @jilvan.silva, typically, when you see that error, you either don’t have an index.html file or don’t have the redirect you mentioned. I do see that you have both. Are you able to point out which exact deploy still showing the Page Not Found error?

My deploy don’t have or appear error how can you see in my screenshot below:

My curiosity is: Why this deploy link works https://5eadcd1ce0d61418413ed635–energy-flex.netlify.app/ and the link app NOT works https://energy-flex.netlify.app/


my gitlab-ci.yml
deploy:
stage: deploy
script:
- yarn global add netlify-cli
- netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod --dir build
dependencies:
- build
only:
- master

Hmmmm I can load your site https://energy-flex.netlify.app/ successfully. I’ve tested in several browsers. Are there any console log errors when you try to view https://energy-flex.netlify.app/ ?

Hi Laura, I don’t know what happened, but now the site is working!

Thank you

1 Like