Skip to content

Commit

Permalink
improve: Re-implement customErrorPages flag in 2.x (#125)
Browse files Browse the repository at this point in the history
* Reimplement customErrorPages flag.

* Bump Nuxt to 3.2.2.

* Fix a failing test.

* Update readme.
  • Loading branch information
TurtlBbx authored Feb 23, 2023
1 parent ff1a5dc commit 7aa2273
Show file tree
Hide file tree
Showing 6 changed files with 1,626 additions and 750 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export default defineNuxtConfig({
- `addRequestContentFormat`: If specified, the given value is added as `_content_format`
URL parameter to requests. Disabled by default.

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


## TODO list of options (not yet implemented)

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

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

- `pageErrorHandler`: The default page error handler can be overridden.

- `menuErrorHandler`: The default menu error handler can be overridden.
Expand Down
Loading

0 comments on commit 7aa2273

Please sign in to comment.