nuxt
nuxt copied to clipboard
New directory to errors
What problem does this feature solve?
1 - With this new feature, I believe that the structure of the app stay more organized.
2 - It is no longer necessary to contain the error.vue
file inside layouts
, because it is not a layout. (We could keep to not contain breaking change)
3 - We could customize each type of error in each corresponding file, without the need to create conditions.
What does the proposed changes look like?
Create a new directory in root errors
to work with errors.
Within this new directory contains the components (pages) for type of error.
Example structure:
- errors
- 404.vue
- 500.vue
- ...
- layouts
- pages
- ...
What do you think? A PR would be welcome?