diff --git a/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx index 1c3ef23049e38f..571714e2c1747d 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx @@ -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 @@ -51,11 +51,11 @@ npm start
- +
-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 diff --git a/src/content/pages-framework-presets/index.yaml b/src/content/pages-framework-presets/index.yaml index b5e644b612ca41..c76039bc87c05c 100644 --- a/src/content/pages-framework-presets/index.yaml +++ b/src/content/pages-framework-presets/index.yaml @@ -1,8 +1,8 @@ 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 diff --git a/src/content/partials/pages/build-configuration.mdx b/src/content/partials/pages/build-configuration.mdx index 299e1e2326e2b6..72f3b8f9ecbca3 100644 --- a/src/content/partials/pages/build-configuration.mdx +++ b/src/content/partials/pages/build-configuration.mdx @@ -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 @@ -145,5 +145,4 @@ build_configs: build_command: zola build build_output_directory: public icon: /icons/framework-icons/logo-zola.svg - ---