Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docusaurus/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

const siteConfig = {
title: 'Create React App',
tagline: 'Set up a modern web app by running one command.',
tagline:
'Create React App has been deprecated. Please visit react.dev for modern options.',
url: 'https://create-react-app.dev',
baseUrl: '/',
projectName: 'create-react-app',
Expand All @@ -35,10 +36,10 @@ const siteConfig = {
themeConfig: {
image: 'img/logo-og.png',
announcementBar: {
id: 'support_ukraine',
id: 'deprecated',
content:
'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" \
href="https://opensource.facebook.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.',
'Create React App is deprecated. <a target="_blank" rel="noopener noreferrer" \
href="https://github.com/facebook/create-react-app/discussions/TODO">Read more here</a>.',
backgroundColor: '#20232a',
textColor: '#fff',
isCloseable: false,
Expand Down
14 changes: 14 additions & 0 deletions docusaurus/website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import React from 'react';
import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';

Expand Down Expand Up @@ -44,6 +45,19 @@ function Home() {
permalink={'/'}
description={'Set up a modern web app by running one command.'}
>
<Head>
<meta name="robots" content="noindex" />
<title>Create React App is deprecated.</title>
<meta
name="description"
content="Create React App is deprecated. Please see react.dev for modern options."
/>
<meta property="og:title" content="Create React App is deprecated." />
<meta
property="og:description"
content="Create React App is deprecated. Please see react.dev for modern options."
/>
</Head>
<div className={clsx('hero hero--dark', styles.heroBanner)}>
<div className="container">
<img
Expand Down