Skip to content

Commit bcd8390

Browse files
authored
Correcting an error that occurred in Bun when running the server. Undefined Error.
1 parent a3e56c9 commit bcd8390

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/next/src/server/lib/start-server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
if (performance.getEntriesByName('next-start').length === 0) {
2-
performance.mark('next-start')
1+
if(performance.getEntriesByName !== undefined) {
2+
if (performance.getEntriesByName('next-start').length === 0) {
3+
performance.mark('next-start')
4+
}
35
}
6+
47
import '../next'
58
import '../node-polyfill-fetch'
69
import '../require-hook'

0 commit comments

Comments
 (0)