Skip to content

Commit

Permalink
rm warning
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Apr 10, 2023
1 parent c760447 commit 4656ceb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 73 deletions.
6 changes: 0 additions & 6 deletions packages/next/src/lib/metadata/resolvers/resolve-url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import path from '../../../shared/lib/isomorphic/path'
import * as Log from '../../../build/output/log'

function isStringOrURL(icon: any): icon is string | URL {
return typeof icon === 'string' || icon instanceof URL
Expand All @@ -26,11 +25,6 @@ function resolveUrl(

if (!metadataBase) {
metadataBase = new URL(`http://localhost:${process.env.PORT || 3000}`)
// next build mode warning, add new line prefix for worker output
console.log()
Log.warnOnce(
`metadata.metadataBase is not set in root layout, fallbacks to "${metadataBase.origin}". See https://beta.nextjs.org/docs/api-reference/metadata#metadatabase`
)
}

// Handle relative or absolute paths
Expand Down

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions test/e2e/app-dir/metadata-missing-metadata-base/app/layout.js

This file was deleted.

20 changes: 0 additions & 20 deletions test/e2e/app-dir/metadata-missing-metadata-base/index.test.ts

This file was deleted.

This file was deleted.

0 comments on commit 4656ceb

Please sign in to comment.