New Feature
- Add an enhanced version of velocy in a separated file called router.js in the functions folder.
- Add a working 404 and 500 routes directly in the entry file, index.js.
Details
The previous versions of Blog-Doc for space showed a route not found
page when the user was landing on a page that does not exists.
Now, a 404 page is correctly displayed whenever a user visits a route that does not exists.
A 500 error page was also added in case of an internal server error.
Changes
- Add enhanced version of velocy as router.js file
- Remove velocy from dependencies
- Update dotenv to its latest version
- Use enhanced version of velocy from router.js file
- Import settings into entry file
- Load eta in entry file
- Define the 404 route using notFound method
- Define the 500 route using the onError method
- Delete errorRoute.js file