nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

New directory to errors

Open ricardogobbosouza opened this issue 5 years ago • 1 comments

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?

This feature request is available on Nuxt community (#c8177)

ricardogobbosouza avatar Nov 20 '18 10:11 ricardogobbosouza