File size: 605 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export function renderAppDevOverlay() {
  throw new Error(
    "Next DevTools: Can't render in this environment. This is a bug in Next.js"
  )
}

export function renderPagesDevOverlay() {
  throw new Error(
    "Next DevTools: Can't render in this environment. This is a bug in Next.js"
  )
}

// TODO: Extract into separate functions that are imported
export const dispatcher = new Proxy(
  {},
  {
    get: (_, prop) => {
      return () => {
        throw new Error(
          `Next DevTools: Can't dispatch ${String(prop)} in this environment. This is a bug in Next.js`
        )
      }
    },
  }
)