Angular pages deployment with GitHub

Hi, I tried to deploy a basic angular website on pages from a GitHub repository with the interactive interface in the cloudflare website. The application was built perfectly without errors but when I accessed the page, it was just white with error 404. I visited this page https://developers.cloudflare.com/pages/framework-guides/deploy-an-angular-site/ and followed the instructions (I created a new project) deploying it with npx wrangler pages deploy dist/cloudflare and the page worked perfectly. I noticed that there were ssr and some server configurations on this project... I tried to push it to GitHub to deploy with the same process as my first project but the build didn't work. So, I'm stuck here... I just want to deploy a simple page without ssr or something. I think the problem is that I missed something with the angular build project or it's with the srr that I don't understand.... I don't know if anyone has an idea how to solve this problem. There is my repo : https://github.com/TangoCh4rlie/Portfolio-Sandra/ Thanks to you (I tried with vercel and the project was hosted without any difficulty).
Cloudflare Docs
Angular · Cloudflare Pages docs
Angular ↗ is an incredibly popular framework for building reactive and powerful front-end applications.
GitHub
Portfolio de https://sandrasanseverino.com. Contribute to TangoCh4rlie/Portfolio-Sandra development by creating an account on GitHub.
5 Replies
Єpsilon
Єpsilon3mo ago
did you fix it? check if the deployment settings in the cloudflare user interface are ok. You need to align these configure to replicate the steps that you performed to build the angular project locally maybe adding the --production flag modify the script build: "build": "ng build --configuration production",
Єpsilon
Єpsilon3mo ago
and check this:
No description
Єpsilon
Єpsilon3mo ago
output directory,build script and versions must be alingned
Tango_Charlie
Tango_CharlieOP3mo ago
thanks you very much it works perferctly now 👍
Єpsilon
Єpsilon3mo ago
That's great! Wishing you success and happy coding!

Did you find this page helpful?