Skip to content

Commit 65aa14e

Browse files
Update react pages guide and react build-configuration not to use/mention create-react-app
partially addresses #16379
1 parent 080a884 commit 65aa14e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/content/docs/pages/framework-guides/deploy-a-react-site.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PagesBuildPreset, Render, PackageManagers } from "~/components";
77

88
[React](https://reactjs.org/) is a popular framework for building reactive and powerful front-end applications, built by the open-source team at Facebook.
99

10-
In this guide, you will create a new React application and deploy it using Cloudflare Pages. You will use `create-react-app`, a batteries-included tool for generating new React applications.
10+
In this guide, you will create a new React application and deploy it using Cloudflare Pages.
1111

1212
## Setting up a new project
1313

@@ -51,11 +51,11 @@ npm start
5151

5252
<div>
5353

54-
<PagesBuildPreset framework="create-react-app" />
54+
<PagesBuildPreset framework="react" />
5555

5656
</div>
5757

58-
After configuring your site, you can begin your first deploy. You should see Cloudflare Pages installing `create-react-app`, your project dependencies, and building your site, before deploying it.
58+
After configuring your site, you can begin your first deploy. You should see Cloudflare Pages installing `react`, your project dependencies, and building your site, before deploying it.
5959

6060
:::note
6161

src/content/partials/pages/build-configuration.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
build_configs:
3-
create-react-app:
4-
display_name: Create React App
3+
react:
4+
display_name: React (Vite)
55
build_command: npm run build
6-
build_output_directory: build
6+
build_output_directory: dist
77
icon: /icons/framework-icons/logo-react.svg
88
gatsby:
99
display_name: Gatsby
@@ -145,5 +145,4 @@ build_configs:
145145
build_command: zola build
146146
build_output_directory: public
147147
icon: /icons/framework-icons/logo-zola.svg
148-
149148
---

0 commit comments

Comments
 (0)