From 25f150269d81b030d72aef75123bd88f77ec348b Mon Sep 17 00:00:00 2001 From: Samuel Jensen <44519206+nichtsam@users.noreply.github.com> Date: Sat, 11 Jan 2025 12:34:32 +0100 Subject: [PATCH] handle not found post requests --- app/routes/$.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/routes/$.tsx b/app/routes/$.tsx index b26d52a19..1739b3d65 100644 --- a/app/routes/$.tsx +++ b/app/routes/$.tsx @@ -9,7 +9,11 @@ import { Link, useLocation } from '@remix-run/react' import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx' import { Icon } from '#app/components/ui/icon.tsx' -export async function loader() { +export function loader() { + throw new Response('Not found', { status: 404 }) +} + +export function action() { throw new Response('Not found', { status: 404 }) }