From ddc95cb9e7ebfdd410b90b6c1764bc9c86a54898 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 6 Jul 2023 18:36:17 -0400 Subject: [PATCH] fix: metadatabase warning message --- packages/next/src/lib/metadata/resolvers/resolve-url.ts | 2 +- test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/src/lib/metadata/resolvers/resolve-url.ts b/packages/next/src/lib/metadata/resolvers/resolve-url.ts index fbd5a64a618d8..8ff6c775689f3 100644 --- a/packages/next/src/lib/metadata/resolvers/resolve-url.ts +++ b/packages/next/src/lib/metadata/resolvers/resolve-url.ts @@ -33,7 +33,7 @@ export function getSocialImageFallbackMetadataBase( if (isMetadataBaseMissing) { Log.warnOnce( - `\nmetadata.metadataBase is not set for resolving social open graph or twitter images, fallbacks to "${fallbackMetadata.origin}". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase` + `\nmetadata.metadataBase is not set for resolving social open graph or twitter images, using "${fallbackMetadata.origin}". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase` ) } diff --git a/test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts b/test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts index ec7ccb7e8a841..7c2406cd216e7 100644 --- a/test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts +++ b/test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts @@ -24,7 +24,7 @@ describe('app dir - metadata missing metadataBase', () => { await next.start() await fetchViaHTTP(next.url, '/') expect(next.cliOutput).toInclude( - 'metadata.metadataBase is not set for resolving social open graph or twitter images, fallbacks to' + 'metadata.metadataBase is not set for resolving social open graph or twitter images, using' ) expect(next.cliOutput).toInclude(`"http://localhost:${port}`) expect(next.cliOutput).toInclude(