Skip to content

Commit

Permalink
Update react pages guide and react build-configuration not to use/men…
Browse files Browse the repository at this point in the history
…tion `create-react-app`

partially addresses #16379
  • Loading branch information
dario-piotrowicz committed Oct 13, 2024
1 parent 080a884 commit 65aa14e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PagesBuildPreset, Render, PackageManagers } from "~/components";

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

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.
In this guide, you will create a new React application and deploy it using Cloudflare Pages.

## Setting up a new project

Expand Down Expand Up @@ -51,11 +51,11 @@ npm start

<div>

<PagesBuildPreset framework="create-react-app" />
<PagesBuildPreset framework="react" />

</div>

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.
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.

:::note

Expand Down
7 changes: 3 additions & 4 deletions src/content/partials/pages/build-configuration.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
build_configs:
create-react-app:
display_name: Create React App
react:
display_name: React (Vite)
build_command: npm run build
build_output_directory: build
build_output_directory: dist
icon: /icons/framework-icons/logo-react.svg
gatsby:
display_name: Gatsby
Expand Down Expand Up @@ -145,5 +145,4 @@ build_configs:
build_command: zola build
build_output_directory: public
icon: /icons/framework-icons/logo-zola.svg

---

0 comments on commit 65aa14e

Please sign in to comment.