Skip to content

Commit f6c786c

Browse files
wearejiodeJacobToriLindsay
authored
Update deploy-an-angular-site.mdx (#17946)
* Update deploy-an-angular-site.mdx 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 * Update formatting for warning message * Updated formatting for warning message * Updated warning message formatting from my unlogged in account * Update src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx --------- Co-authored-by: Jacob <[email protected]> Co-authored-by: ToriLindsay <[email protected]>
1 parent 7c6eea2 commit f6c786c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ git push -u origin main
5858

5959
<PagesBuildPreset framework="angular" />
6060

61+
62+
:::caution[On some versions of Angular, you may need to:]
63+
Change the `Build command` to `npx ng build --output-path dist/cloudflare`\
64+
Change the `Build directory` to `dist/cloudflare/browser`
65+
:::
66+
6167
Optionally, you can customize the **Project name** field. It defaults to the GitHub repository's name, but it does not need to match. The **Project name** value is assigned as your `*.pages.dev` subdomain.
6268

6369
4. After completing configuration, select the **Save and Deploy**.

0 commit comments

Comments
 (0)