index.js (576B)
1 /** 2 * React Starter Kit (https://www.reactstarterkit.com/) 3 * 4 * Copyright © 2014-present Kriasoft, LLC. All rights reserved. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.txt file in the root directory of this source tree. 8 */ 9 10 import React from 'react'; 11 import Layout from '../../components/Layout'; 12 import NotFound from './NotFound'; 13 14 const title = 'Page Not Found'; 15 16 export default { 17 18 path: '*', 19 20 action() { 21 return { 22 title, 23 component: <Layout><NotFound title={title} /></Layout>, 24 status: 404, 25 }; 26 }, 27 28 };