diff --git a/CHANGELOG.md b/CHANGELOG.md index d08af98adf..a852a922dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Upcoming - `apollo` + - Update shortlinks to use go.apollo.dev instead of bitly [#1790](https://github.com/apollographql/apollo-tooling/pull/1790) - Support disabling literal stripping when extracting queries. [1703](https://github.com/apollographql/apollo-tooling/pull/1703) - `apollo-codegen-flow` - diff --git a/packages/apollo-language-server/src/config/loadConfig.ts b/packages/apollo-language-server/src/config/loadConfig.ts index 6ba26d5a6a..430b006676 100644 --- a/packages/apollo-language-server/src/config/loadConfig.ts +++ b/packages/apollo-language-server/src/config/loadConfig.ts @@ -90,20 +90,19 @@ export async function loadConfig({ if (configPath && !loadedConfig) { return Debug.error( - `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` + `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` ); } if (loadedConfig && loadedConfig.filepath.endsWith("package.json")) { Debug.warning( - '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' + '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' ); } if (requireConfig && !loadedConfig) { return Debug.error( - `No Apollo config found for project. For more information, please refer to: - https://bit.ly/2ByILPj` + `No Apollo config found for project. For more information, please refer to: https://go.apollo.dev/t/config` ); } @@ -145,7 +144,7 @@ export async function loadConfig({ else if (loadedConfig && loadedConfig.config.service) projectType = "service"; else return Debug.error( - "Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj" + "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" ); // DETERMINE SERVICE NAME diff --git a/packages/apollo-language-server/src/project/client.ts b/packages/apollo-language-server/src/project/client.ts index df59d5fa16..156a84a192 100644 --- a/packages/apollo-language-server/src/project/client.ts +++ b/packages/apollo-language-server/src/project/client.ts @@ -134,7 +134,7 @@ export class GraphQLClientProject extends GraphQLProject { "⚠️ It looks like there are 0 files associated with this Apollo Project. " + "This may be because you don't have any files yet, or your includes/excludes " + "fields are configured incorrectly, and Apollo can't find your files. " + - "For help configuring Apollo projects, see this guide: https://bit.ly/2ByILPj" + "For help configuring Apollo projects, see this guide: https://go.apollo.dev/t/config" ); } diff --git a/packages/apollo-language-server/src/providers/schema/endpoint.ts b/packages/apollo-language-server/src/providers/schema/endpoint.ts index 174913fe03..78bea63931 100644 --- a/packages/apollo-language-server/src/providers/schema/endpoint.ts +++ b/packages/apollo-language-server/src/providers/schema/endpoint.ts @@ -49,7 +49,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider { "\nIt expected a JSON schema introspection result, but got an HTML response instead." + "\nYou may need to add headers to your request or adjust your endpoint url.\n" + "-----------------------------\n" + - "For more information, please refer to: https://bit.ly/2ByILPj \n\n" + + "For more information, please refer to: https://go.apollo.dev/t/config \n\n" + "The following error occurred:\n-----------------------------\n" + e.message ); @@ -68,7 +68,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider { "By default, when an endpoint, Graph Manager API key, or localSchemaFile isn't provided, Apollo tries to fetch a schema from " + DefaultServiceConfig.endpoint.url + "\n-----------------------------\n" + - "\nFor more information, please refer to: https://bit.ly/2ByILPj \n\n" + + "\nFor more information, please refer to: https://go.apollo.dev/t/config \n\n" + "The following error occurred: \n" + "-----------------------------\n" + e.message diff --git a/packages/apollo-language-server/src/providers/schema/index.ts b/packages/apollo-language-server/src/providers/schema/index.ts index 04983b5d51..bc9c57d4e0 100644 --- a/packages/apollo-language-server/src/providers/schema/index.ts +++ b/packages/apollo-language-server/src/providers/schema/index.ts @@ -65,6 +65,6 @@ export function schemaProviderFromConfig( } throw new Error( - "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" + "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" ); } diff --git a/packages/apollo/src/Command.ts b/packages/apollo/src/Command.ts index fc3ef34675..bed86ba78b 100644 --- a/packages/apollo/src/Command.ts +++ b/packages/apollo/src/Command.ts @@ -227,7 +227,7 @@ export abstract class ProjectCommand extends Command { }); } else { throw new Error( - "Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj" + "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" ); } diff --git a/packages/apollo/src/utils/validateHistoricParams.ts b/packages/apollo/src/utils/validateHistoricParams.ts index ee98dfc531..b31d04fb39 100644 --- a/packages/apollo/src/utils/validateHistoricParams.ts +++ b/packages/apollo/src/utils/validateHistoricParams.ts @@ -29,7 +29,7 @@ export function validateHistoricParams({ if (from >= 0) { throw new Error( - "Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://bit.ly/2DEJ3UN." + "Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://go.apollo.dev/t/iso-durations." ); } } diff --git a/packages/vscode-apollo/src/utils.ts b/packages/vscode-apollo/src/utils.ts index 62e099c6cf..c31ad9930a 100644 --- a/packages/vscode-apollo/src/utils.ts +++ b/packages/vscode-apollo/src/utils.ts @@ -52,7 +52,7 @@ export const printStatsToClientOutputChannel = ( client.outputChannel.appendLine( "❌ Service stats could not be loaded. This may be because you're missing an apollo.config.js file " + "or it is misconfigured. For more information about configuring Apollo projects, " + - "see the guide here (https://bit.ly/2ByILPj)." + "see the guide here (https://go.apollo.dev/t/config)." ); return; }