diff --git a/docs/01-app/04-api-reference/03-file-conventions/error.mdx b/docs/01-app/04-api-reference/03-file-conventions/error.mdx
index c50fa0d93f79..417a2b90fde2 100644
--- a/docs/01-app/04-api-reference/03-file-conventions/error.mdx
+++ b/docs/01-app/04-api-reference/03-file-conventions/error.mdx
@@ -193,11 +193,12 @@ export default function GlobalError({ error, reset }) {
}
```
-> **Good to know**: `global-error.js` is only enabled in production. In development, our error overlay will show instead.
+> **Good to know**: `global-error.js` is always displayed In development, error overlay will show instead.
## Version History
-| Version | Changes |
-| --------- | -------------------------- |
-| `v13.1.0` | `global-error` introduced. |
-| `v13.0.0` | `error` introduced. |
+| Version | Changes |
+| --------- | ------------------------------------------- |
+| `v15.2.0` | display `global-error` also in development. |
+| `v13.1.0` | `global-error` introduced. |
+| `v13.0.0` | `error` introduced. |
diff --git a/packages/next/src/client/components/app-router.tsx b/packages/next/src/client/components/app-router.tsx
index e319759869d5..c46f2441d995 100644
--- a/packages/next/src/client/components/app-router.tsx
+++ b/packages/next/src/client/components/app-router.tsx
@@ -40,7 +40,11 @@ import {
PathParamsContext,
} from '../../shared/lib/hooks-client-context.shared-runtime'
import { useReducer, useUnwrapState } from './use-reducer'
-import { ErrorBoundary, type ErrorComponent } from './error-boundary'
+import {
+ ErrorBoundary,
+ type ErrorComponent,
+ type GlobalErrorComponent,
+} from './error-boundary'
import { isBot } from '../../shared/lib/router/utils/is-bot'
import { addBasePath } from '../add-base-path'
import { AppRouterAnnouncer } from './app-router-announcer'
@@ -242,9 +246,11 @@ function Head({
function Router({
actionQueue,
assetPrefix,
+ globalError,
}: {
actionQueue: AppRouterActionQueue
assetPrefix: string
+ globalError: [GlobalErrorComponent, React.ReactNode]
}) {
const [state, dispatch] = useReducer(actionQueue)
const { canonicalUrl } = useUnwrapState(state)
@@ -622,7 +628,11 @@ function Router({
const HotReloader: typeof import('./react-dev-overlay/app/hot-reloader-client').default =
require('./react-dev-overlay/app/hot-reloader-client').default
- content =
+
+
+ )
+ }
+ return (
+ <>
+ {globalErrorStyles}
+
-