diff --git a/template/app/main.wasp b/template/app/main.wasp index 7055034..3d8e67b 100644 --- a/template/app/main.wasp +++ b/template/app/main.wasp @@ -309,6 +309,11 @@ page AdminUIButtonsPage { authRequired: true, component: import AdminUI from "@src/admin/elements/ui-elements/ButtonsPage" } + +route NotFoundRoute { path: "*", to: NotFoundPage } +page NotFoundPage { + component: import { NotFoundPage } from "@src/client/components/NotFoundPage" +} //#endregion //#region Contact Form Messages diff --git a/template/app/src/client/components/NotFoundPage.tsx b/template/app/src/client/components/NotFoundPage.tsx new file mode 100644 index 0000000..43aa559 --- /dev/null +++ b/template/app/src/client/components/NotFoundPage.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +export function NotFoundPage() { + return ( +
Oops! The page you're looking for doesn't exist.
+ + Go Back Home + +