Skip to content

Commit 7aa2273

Browse files
authored
improve: Re-implement customErrorPages flag in 2.x (#125)
* Reimplement customErrorPages flag. * Bump Nuxt to 3.2.2. * Fix a failing test. * Update readme.
1 parent ff1a5dc commit 7aa2273

File tree

6 files changed

+1626
-750
lines changed

6 files changed

+1626
-750
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export default defineNuxtConfig({
5252
- `addRequestContentFormat`: If specified, the given value is added as `_content_format`
5353
URL parameter to requests. Disabled by default.
5454

55+
- `customErrorPages`: By default, error pages provided by Drupal (e.g. 403, 404 page) are shown,
56+
while keeping the right status code. By enabling customErrorPages, the regular Nuxt error
57+
pages are shown instead, such that the pages can be customized with Nuxt. Defaults to `false`.
58+
5559

5660
## TODO list of options (not yet implemented)
5761

@@ -68,10 +72,6 @@ export default defineNuxtConfig({
6872
Note: When using `always` the module must be added to the nuxt `modules` section instead
6973
of the `buildModules` section.
7074

71-
- `customErrorPages`: By default, error pages provided by Drupal (e.g. 403, 404 page) are shown,
72-
while keeping the right status code. By enabling customErrorPages, the regular Nuxt error
73-
pages are shown instead, such that the pages can be customized with Nuxt. Defaults to `false`.
74-
7575
- `pageErrorHandler`: The default page error handler can be overridden.
7676

7777
- `menuErrorHandler`: The default menu error handler can be overridden.

0 commit comments

Comments
 (0)