🔥
This commit is contained in:
17
src/routes/error/index.js
Normal file
17
src/routes/error/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import ErrorPage from './ErrorPage';
|
||||
|
||||
export default {
|
||||
|
||||
path: '/error',
|
||||
|
||||
action({ error }) {
|
||||
return {
|
||||
title: error.name,
|
||||
description: error.message,
|
||||
component: <ErrorPage error={error} />,
|
||||
status: error.status || 500,
|
||||
};
|
||||
},
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user