From 0864a47c071464e30fc333f23f9eef4cc0605fa1 Mon Sep 17 00:00:00 2001 From: Samuel Jensen <44519206+nichtsam@users.noreply.github.com> Date: Sun, 12 Jan 2025 16:21:36 +0100 Subject: [PATCH] handle not found post requests (#898) --- app/routes/$.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/routes/$.tsx b/app/routes/$.tsx index b26d52a1..1739b3d6 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 }) }