next.js/packages/next/src/next-devtools/dev-overlay.shim.ts
dev-overlay.shim.ts26 lines605 B
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`
        )
      }
    },
  }
)
Quest for Codev2.0.0
/
SIGN IN