Skip to content

Commit

Permalink
fix: metadatabase warning message (#52363)
Browse files Browse the repository at this point in the history
This PR is a small grammar change to the warning message since "fallbacks to" is not grammatically correct.
  • Loading branch information
styfle authored Jul 7, 2023
1 parent 2c12c6a commit 2721714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/lib/metadata/resolvers/resolve-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2721714

Please sign in to comment.