-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Following deploy-an-angular-site documentation fails when actually deploying #5527
Comments
I'm starting to wonder if the documentation is corect anyway? Is the That just runs the ng build, which is e.g. diffrently that is one the generated package.json for e.g. deploy:
E.g. the |
I changed the build command from the default value But with the default genereated npm tasks:
this won't use the production configuration, right? I think there is piece missing in the documenatation or in the generated setup from |
If we look at the generated In this case, |
Using the default options for Angular isn't working for me. Log:
I also tried What DID finally work was using |
In addition to what @Ningyoplug said above, it looks like adding the following to your Cloudflare page build configuration found in Build command: Optionally you can change your package.json build command to be: If you are building successfully but getting a 404 change the build output to dist/cloudflare/browser |
Hotfix for Update Build Settings For angular. Fixed and working. Request to change PagesBuildPreset to this solution or add instructions to change the ng build command in package.json. Request to update the Angular preset on the dashboard to match. Seems like there are quite a few people with this issue. See: cloudflare/workers-sdk#5527 Also: https://stackoverflow.com/questions/78463333/fail-to-deploy-angular-project-on-cloudflare-pages/79151848#79151848 And: https://community.cloudflare.com/t/angular-app-deployed-to-pages-is-unavailable-on-domain/632745
Which Cloudflare product(s) does this pertain to?
C3
What version(s) of the tool(s) are you using?
2.17.1 [C3]
What version of Node are you using?
20.12.0
What operating system and version are you using?
Mac
Describe the Bug
Observed behavior
Following https://developers.cloudflare.com/pages/framework-guides/deploy-an-angular-site/ documentation gives build error when deploying:
Expected behavior
When following the exact steps from the documentation, build successfully deployed.
Steps to reproduce
I've followed https://developers.cloudflare.com/pages/framework-guides/deploy-an-angular-site/ to create a new Angular project using:
Then I pushed this to https://github.com/marceloverdijk/my-angular-app using:
Then I created a new Pages project with the default settings:
Which is similar as in the documentation page:
After creating the project the build starts, but fails with:
(see full logs below)
Please provide a link to a minimal reproduction
https://github.com/marceloverdijk/my-angular-app
Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: