Skip to content

Commit 9123aae

Browse files
authored
Move shortlinks to cra.link (#8957)
1 parent 6b28c60 commit 9123aae

File tree

10 files changed

+14
-16
lines changed

10 files changed

+14
-16
lines changed

Diff for: docusaurus/docs/making-a-progressive-web-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ following in their [`src/index.js`](https://github.com/facebook/create-react-app
1515
```js
1616
// If you want your app to work offline and load faster, you can change
1717
// unregister() to register() below. Note this comes with some pitfalls.
18-
// Learn more about service workers: https://bit.ly/CRA-PWA
18+
// Learn more about service workers: https://cra.link/PWA
1919
serviceWorker.unregister();
2020
```
2121

Diff for: packages/cra-template-typescript/template/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ ReactDOM.render(
1313

1414
// If you want your app to work offline and load faster, you can change
1515
// unregister() to register() below. Note this comes with some pitfalls.
16-
// Learn more about service workers: https://bit.ly/CRA-PWA
16+
// Learn more about service workers: https://cra.link/PWA
1717
serviceWorker.unregister();

Diff for: packages/cra-template-typescript/template/src/serviceWorker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// resources are updated in the background.
99

1010
// To learn more about the benefits of this model and instructions on how to
11-
// opt-in, read https://bit.ly/CRA-PWA
11+
// opt-in, read https://cra.link/PWA
1212

1313
const isLocalhost = Boolean(
1414
window.location.hostname === 'localhost' ||
@@ -51,7 +51,7 @@ export function register(config?: Config) {
5151
navigator.serviceWorker.ready.then(() => {
5252
console.log(
5353
'This web app is being served cache-first by a service ' +
54-
'worker. To learn more, visit https://bit.ly/CRA-PWA'
54+
'worker. To learn more, visit https://cra.link/PWA'
5555
);
5656
});
5757
} else {
@@ -79,7 +79,7 @@ function registerValidSW(swUrl: string, config?: Config) {
7979
// content until all client tabs are closed.
8080
console.log(
8181
'New content is available and will be used when all ' +
82-
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
82+
'tabs for this page are closed. See https://cra.link/PWA.'
8383
);
8484

8585
// Execute callback

Diff for: packages/cra-template/template/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ ReactDOM.render(
1313

1414
// If you want your app to work offline and load faster, you can change
1515
// unregister() to register() below. Note this comes with some pitfalls.
16-
// Learn more about service workers: https://bit.ly/CRA-PWA
16+
// Learn more about service workers: https://cra.link/PWA
1717
serviceWorker.unregister();

Diff for: packages/cra-template/template/src/serviceWorker.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// resources are updated in the background.
99

1010
// To learn more about the benefits of this model and instructions on how to
11-
// opt-in, read https://bit.ly/CRA-PWA
11+
// opt-in, read https://cra.link/PWA
1212

1313
const isLocalhost = Boolean(
1414
window.location.hostname === 'localhost' ||
@@ -43,7 +43,7 @@ export function register(config) {
4343
navigator.serviceWorker.ready.then(() => {
4444
console.log(
4545
'This web app is being served cache-first by a service ' +
46-
'worker. To learn more, visit https://bit.ly/CRA-PWA'
46+
'worker. To learn more, visit https://cra.link/PWA'
4747
);
4848
});
4949
} else {
@@ -71,7 +71,7 @@ function registerValidSW(swUrl, config) {
7171
// content until all client tabs are closed.
7272
console.log(
7373
'New content is available and will be used when all ' +
74-
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
74+
'tabs for this page are closed. See https://cra.link/PWA.'
7575
);
7676

7777
// Execute callback

Diff for: packages/react-dev-utils/printBuildError.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function printBuildError(err) {
3737
} catch (ignored) {
3838
console.log('Failed to minify the bundle.', err);
3939
}
40-
console.log('Read more here: https://bit.ly/CRA-build-minify');
40+
console.log('Read more here: https://cra.link/failed-to-minify');
4141
} else {
4242
console.log((message || err) + '\n');
4343
}

Diff for: packages/react-dev-utils/printHostingInstructions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function printHostingInstructions(
4141
console.log();
4242
console.log('Find out more about deployment here:');
4343
console.log();
44-
console.log(` ${chalk.yellow('create-react-app.dev/docs/deployment')}`);
44+
console.log(` ${chalk.yellow('https://cra.link/deployment')}`);
4545
console.log();
4646
}
4747

Diff for: packages/react-scripts/scripts/init.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ module.exports = function(
135135
'This template should be updated to use the new `package` key.'
136136
)
137137
);
138-
console.log(
139-
'For more information, visit https://create-react-app.dev/docs/custom-templates'
140-
);
138+
console.log('For more information, visit https://cra.link/templates');
141139
}
142140
if (templateJson.dependencies) {
143141
templatePackage.dependencies = templateJson.dependencies;

Diff for: packages/react-scripts/scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if (process.env.HOST) {
7272
`If this was unintentional, check that you haven't mistakenly set it in your shell.`
7373
);
7474
console.log(
75-
`Learn more here: ${chalk.yellow('https://bit.ly/CRA-advanced-config')}`
75+
`Learn more here: ${chalk.yellow('https://cra.link/advanced-config')}`
7676
);
7777
console.log();
7878
}

Diff for: packages/react-scripts/template/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Learn about making a Progressive Web App [here](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
1+
This file has moved [here](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md)

0 commit comments

Comments
 (0)