diff --git a/docusaurus/docs/making-a-progressive-web-app.md b/docusaurus/docs/making-a-progressive-web-app.md index 227b21eb4e6..ba9802e6088 100644 --- a/docusaurus/docs/making-a-progressive-web-app.md +++ b/docusaurus/docs/making-a-progressive-web-app.md @@ -15,7 +15,7 @@ following in their [`src/index.js`](https://github.com/facebook/create-react-app ```js // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: https://bit.ly/CRA-PWA +// Learn more about service workers: https://cra.link/PWA serviceWorker.unregister(); ``` diff --git a/packages/cra-template-typescript/template/src/index.tsx b/packages/cra-template-typescript/template/src/index.tsx index f5185c1ec7a..f85c4d0ffde 100644 --- a/packages/cra-template-typescript/template/src/index.tsx +++ b/packages/cra-template-typescript/template/src/index.tsx @@ -13,5 +13,5 @@ ReactDOM.render( // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: https://bit.ly/CRA-PWA +// Learn more about service workers: https://cra.link/PWA serviceWorker.unregister(); diff --git a/packages/cra-template-typescript/template/src/serviceWorker.ts b/packages/cra-template-typescript/template/src/serviceWorker.ts index b09523f155e..9fca0aa3bdf 100644 --- a/packages/cra-template-typescript/template/src/serviceWorker.ts +++ b/packages/cra-template-typescript/template/src/serviceWorker.ts @@ -8,7 +8,7 @@ // resources are updated in the background. // To learn more about the benefits of this model and instructions on how to -// opt-in, read https://bit.ly/CRA-PWA +// opt-in, read https://cra.link/PWA const isLocalhost = Boolean( window.location.hostname === 'localhost' || @@ -51,7 +51,7 @@ export function register(config?: Config) { navigator.serviceWorker.ready.then(() => { console.log( 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://bit.ly/CRA-PWA' + 'worker. To learn more, visit https://cra.link/PWA' ); }); } else { @@ -79,7 +79,7 @@ function registerValidSW(swUrl: string, config?: Config) { // content until all client tabs are closed. console.log( 'New content is available and will be used when all ' + - 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' + 'tabs for this page are closed. See https://cra.link/PWA.' ); // Execute callback diff --git a/packages/cra-template/template/src/index.js b/packages/cra-template/template/src/index.js index f5185c1ec7a..f85c4d0ffde 100644 --- a/packages/cra-template/template/src/index.js +++ b/packages/cra-template/template/src/index.js @@ -13,5 +13,5 @@ ReactDOM.render( // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: https://bit.ly/CRA-PWA +// Learn more about service workers: https://cra.link/PWA serviceWorker.unregister(); diff --git a/packages/cra-template/template/src/serviceWorker.js b/packages/cra-template/template/src/serviceWorker.js index b04b771a826..02b0533647d 100644 --- a/packages/cra-template/template/src/serviceWorker.js +++ b/packages/cra-template/template/src/serviceWorker.js @@ -8,7 +8,7 @@ // resources are updated in the background. // To learn more about the benefits of this model and instructions on how to -// opt-in, read https://bit.ly/CRA-PWA +// opt-in, read https://cra.link/PWA const isLocalhost = Boolean( window.location.hostname === 'localhost' || @@ -43,7 +43,7 @@ export function register(config) { navigator.serviceWorker.ready.then(() => { console.log( 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://bit.ly/CRA-PWA' + 'worker. To learn more, visit https://cra.link/PWA' ); }); } else { @@ -71,7 +71,7 @@ function registerValidSW(swUrl, config) { // content until all client tabs are closed. console.log( 'New content is available and will be used when all ' + - 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' + 'tabs for this page are closed. See https://cra.link/PWA.' ); // Execute callback diff --git a/packages/react-dev-utils/printBuildError.js b/packages/react-dev-utils/printBuildError.js index 28f0de0cd9e..c0cd9c39f23 100644 --- a/packages/react-dev-utils/printBuildError.js +++ b/packages/react-dev-utils/printBuildError.js @@ -37,7 +37,7 @@ module.exports = function printBuildError(err) { } catch (ignored) { console.log('Failed to minify the bundle.', err); } - console.log('Read more here: https://bit.ly/CRA-build-minify'); + console.log('Read more here: https://cra.link/failed-to-minify'); } else { console.log((message || err) + '\n'); } diff --git a/packages/react-dev-utils/printHostingInstructions.js b/packages/react-dev-utils/printHostingInstructions.js index 522a7de318c..49433f71edd 100644 --- a/packages/react-dev-utils/printHostingInstructions.js +++ b/packages/react-dev-utils/printHostingInstructions.js @@ -41,7 +41,7 @@ function printHostingInstructions( console.log(); console.log('Find out more about deployment here:'); console.log(); - console.log(` ${chalk.yellow('create-react-app.dev/docs/deployment')}`); + console.log(` ${chalk.yellow('https://cra.link/deployment')}`); console.log(); } diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 3411da29179..1e443386422 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -135,9 +135,7 @@ module.exports = function( 'This template should be updated to use the new `package` key.' ) ); - console.log( - 'For more information, visit https://create-react-app.dev/docs/custom-templates' - ); + console.log('For more information, visit https://cra.link/templates'); } if (templateJson.dependencies) { templatePackage.dependencies = templateJson.dependencies; diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index e3b3943ef3d..aa14691c1e1 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -72,7 +72,7 @@ if (process.env.HOST) { `If this was unintentional, check that you haven't mistakenly set it in your shell.` ); console.log( - `Learn more here: ${chalk.yellow('https://bit.ly/CRA-advanced-config')}` + `Learn more here: ${chalk.yellow('https://cra.link/advanced-config')}` ); console.log(); } diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 03ced3cd297..1269cf81993 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1 +1 @@ -Learn about making a Progressive Web App [here](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) +This file has moved [here](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md)