From 6f5f1f9e98b2988e176f46f7a42b3a4fad66d13f Mon Sep 17 00:00:00 2001 From: Lody Borgers Date: Wed, 9 Aug 2023 14:50:04 +0200 Subject: [PATCH] Added a robots.txt file --- app/routes/robots[.txt].ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/routes/robots[.txt].ts diff --git a/app/routes/robots[.txt].ts b/app/routes/robots[.txt].ts new file mode 100644 index 0000000..133440b --- /dev/null +++ b/app/routes/robots[.txt].ts @@ -0,0 +1,14 @@ +import { json } from '@remix-run/node'; + +export function loader() { + const body = ` +User-agent: * +Disallow: / + `; + + return json(body, { + headers: { + 'Content-Type': 'text/plain', + }, + }); +}