Skip to content

Commit 3a5db49

Browse files
authored
Update shortlinks to use go.apollo.dev (#1790)
* update shortlinks to use go.apollo.dev * update changelog
1 parent 4336cd2 commit 3a5db49

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Upcoming
44

55
- `apollo`
6+
- Update shortlinks to use go.apollo.dev instead of bitly [#1790](https://github.com/apollographql/apollo-tooling/pull/1790)
67
- Support disabling literal stripping when extracting queries. [1703](https://github.com/apollographql/apollo-tooling/pull/1703)
78
- `apollo-codegen-flow`
89
- <First `apollo-codegen-flow` related entry goes here>

packages/apollo-language-server/src/config/loadConfig.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,19 @@ export async function loadConfig({
9090

9191
if (configPath && !loadedConfig) {
9292
return Debug.error(
93-
`A config file failed to load at '${configPath}'. This is likely because this file is empty or malformed. For more information, please refer to: https://bit.ly/2ByILPj`
93+
`A config file failed to load at '${configPath}'. This is likely because this file is empty or malformed. For more information, please refer to: https://go.apollo.dev/t/config`
9494
);
9595
}
9696

9797
if (loadedConfig && loadedConfig.filepath.endsWith("package.json")) {
9898
Debug.warning(
99-
'The "apollo" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://bit.ly/2ByILPj'
99+
'The "apollo" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://go.apollo.dev/t/config'
100100
);
101101
}
102102

103103
if (requireConfig && !loadedConfig) {
104104
return Debug.error(
105-
`No Apollo config found for project. For more information, please refer to:
106-
https://bit.ly/2ByILPj`
105+
`No Apollo config found for project. For more information, please refer to: https://go.apollo.dev/t/config`
107106
);
108107
}
109108

@@ -145,7 +144,7 @@ export async function loadConfig({
145144
else if (loadedConfig && loadedConfig.config.service) projectType = "service";
146145
else
147146
return Debug.error(
148-
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
147+
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
149148
);
150149

151150
// DETERMINE SERVICE NAME

packages/apollo-language-server/src/project/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class GraphQLClientProject extends GraphQLProject {
134134
"⚠️ It looks like there are 0 files associated with this Apollo Project. " +
135135
"This may be because you don't have any files yet, or your includes/excludes " +
136136
"fields are configured incorrectly, and Apollo can't find your files. " +
137-
"For help configuring Apollo projects, see this guide: https://bit.ly/2ByILPj"
137+
"For help configuring Apollo projects, see this guide: https://go.apollo.dev/t/config"
138138
);
139139
}
140140

packages/apollo-language-server/src/providers/schema/endpoint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
4949
"\nIt expected a JSON schema introspection result, but got an HTML response instead." +
5050
"\nYou may need to add headers to your request or adjust your endpoint url.\n" +
5151
"-----------------------------\n" +
52-
"For more information, please refer to: https://bit.ly/2ByILPj \n\n" +
52+
"For more information, please refer to: https://go.apollo.dev/t/config \n\n" +
5353
"The following error occurred:\n-----------------------------\n" +
5454
e.message
5555
);
@@ -68,7 +68,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
6868
"By default, when an endpoint, Graph Manager API key, or localSchemaFile isn't provided, Apollo tries to fetch a schema from " +
6969
DefaultServiceConfig.endpoint.url +
7070
"\n-----------------------------\n" +
71-
"\nFor more information, please refer to: https://bit.ly/2ByILPj \n\n" +
71+
"\nFor more information, please refer to: https://go.apollo.dev/t/config \n\n" +
7272
"The following error occurred: \n" +
7373
"-----------------------------\n" +
7474
e.message

packages/apollo-language-server/src/providers/schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ export function schemaProviderFromConfig(
6565
}
6666

6767
throw new Error(
68-
"No schema provider was created, because the project type was unable to be resolved from your config. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
68+
"No schema provider was created, because the project type was unable to be resolved from your config. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
6969
);
7070
}

packages/apollo/src/Command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export abstract class ProjectCommand extends Command {
227227
});
228228
} else {
229229
throw new Error(
230-
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
230+
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
231231
);
232232
}
233233

packages/apollo/src/utils/validateHistoricParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function validateHistoricParams({
2929

3030
if (from >= 0) {
3131
throw new Error(
32-
"Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://bit.ly/2DEJ3UN."
32+
"Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://go.apollo.dev/t/iso-durations."
3333
);
3434
}
3535
}

packages/vscode-apollo/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const printStatsToClientOutputChannel = (
5252
client.outputChannel.appendLine(
5353
"❌ Service stats could not be loaded. This may be because you're missing an apollo.config.js file " +
5454
"or it is misconfigured. For more information about configuring Apollo projects, " +
55-
"see the guide here (https://bit.ly/2ByILPj)."
55+
"see the guide here (https://go.apollo.dev/t/config)."
5656
);
5757
return;
5858
}

0 commit comments

Comments
 (0)