2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
const siteConfig = {
10
10
title : 'Create React App' ,
11
- tagline : 'Set up a modern web app by running one command.' ,
11
+ tagline :
12
+ 'Create React App has been deprecated. Please visit react.dev for modern options.' ,
12
13
url : 'https://create-react-app.dev' ,
13
14
baseUrl : '/' ,
14
15
projectName : 'create-react-app' ,
@@ -35,10 +36,9 @@ const siteConfig = {
35
36
themeConfig : {
36
37
image : 'img/logo-og.png' ,
37
38
announcementBar : {
38
- id : 'support_ukraine ' ,
39
+ id : 'deprecated ' ,
39
40
content :
40
- 'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" \
41
- href="https://opensource.facebook.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.' ,
41
+ 'Create React App is deprecated. <a target="_blank" rel="noopener noreferrer" href="https://react.dev/link/cra">Read more here</a>.' ,
42
42
backgroundColor : '#20232a' ,
43
43
textColor : '#fff' ,
44
44
isCloseable : false ,
Original file line number Diff line number Diff line change 7
7
8
8
import React from 'react' ;
9
9
import Link from '@docusaurus/Link' ;
10
+ import Head from '@docusaurus/Head' ;
10
11
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
11
12
import useBaseUrl from '@docusaurus/useBaseUrl' ;
12
13
@@ -44,6 +45,19 @@ function Home() {
44
45
permalink = { '/' }
45
46
description = { 'Set up a modern web app by running one command.' }
46
47
>
48
+ < Head >
49
+ < meta name = "robots" content = "noindex" />
50
+ < title > Create React App is deprecated.</ title >
51
+ < meta
52
+ name = "description"
53
+ content = "Create React App is deprecated. Please see react.dev for modern options."
54
+ />
55
+ < meta property = "og:title" content = "Create React App is deprecated." />
56
+ < meta
57
+ property = "og:description"
58
+ content = "Create React App is deprecated. Please see react.dev for modern options."
59
+ />
60
+ </ Head >
47
61
< div className = { clsx ( 'hero hero--dark' , styles . heroBanner ) } >
48
62
< div className = "container" >
49
63
< img
0 commit comments