Skip to content

Commit

Permalink
update documentation kinda
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakoneval committed Oct 4, 2023
1 parent 07585fe commit a22a83a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/source/api/plugin/landing-pages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This landing page is designed for use in local development, where `NODE_ENV` is

By default, this plugin uses the latest version of the landing page published to Apollo's CDN. If you'd like to pin the current version, you can specify it here.

The current latest version is available at [this link](https://apollo-server-landing-page.cdn.apollographql.com/_latest/version.txt).
The current latest version is available at [this link](https://apollo-server-landing-page.cdn.apollographql.com/latest/version.txt).

</td>
</tr>
Expand Down Expand Up @@ -363,7 +363,7 @@ This landing page is designed for use in production. It provides a copyable comm

By default, this plugin uses the latest version of the landing page published to Apollo's CDN. If you'd like to pin the current version, you can specify it here.

The current latest version is available at [this link](https://apollo-server-landing-page.cdn.apollographql.com/_latest/version.txt).
The current latest version is available at [this link](https://apollo-server-landing-page.cdn.apollographql.com/latest/version.txt).

</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/plugin/landingPage/default/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function ApolloServerPluginLandingPageDefault<TContext extends BaseContext>(
): ImplicitlyInstallablePlugin<TContext> {
const explorerVersion = maybeVersion ?? 'v3';
const sandboxVersion = maybeVersion ?? 'v2';
const apolloServerLandingPageVersion = maybeVersion ?? '_latest';
const apolloServerLandingPageVersion = maybeVersion ?? '_latest'; // note _latest is frozen is time as of this PR https://github.com/apollographql/embeddable-explorer/pull/280
const apolloServerVersion = `@apollo/server@${packageVersion}`;

const scriptSafeList = [
Expand Down
8 changes: 4 additions & 4 deletions packages/server/src/plugin/landingPage/default/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ type InitialStateForEmbeds =

export type ApolloServerPluginLandingPageDefaultBaseOptions = {
/**
* By default, the landing page plugin uses the latest version of the landing
* page published to Apollo's CDN. If you'd like to pin the current version,
* pass the SHA served at
* https://apollo-server-landing-page.cdn.apollographql.com/_latest/version.txt
* By default, the landing page plugin uses the version of the landing
* page published to Apollo's CDN from https://github.com/apollographql/embeddable-explorer/commit/73baf89f5308d263425bbafe21a842a26123cfac.
* If you'd like to pin the current version, pass the SHA served at
* https://apollo-server-landing-page.cdn.apollographql.com/latest/version.txt
* here.
*/
version?: string;
Expand Down

0 comments on commit a22a83a

Please sign in to comment.