diff --git a/app/robots.tsx b/app/robots.tsx new file mode 100644 index 0000000..e5ec8d7 --- /dev/null +++ b/app/robots.tsx @@ -0,0 +1,14 @@ +export const loader = () => { + const robotText = ` + User-agent: * + User-agent: AdsBot-Google + Disallow: /q/ + ` + // return the text content, a status 200 success response, and set the content type to text/plain + return new Response(robotText,{ + status: 200, + headers: { + "Content-Type": "text/plain", + } + }); +}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e8250b3..eb874df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "gooey-remix", + "name": "gooey-ui", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/remix.config.js b/remix.config.js index a4e4fff..7df5996 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,6 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", + "/2/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ @@ -53,6 +54,7 @@ module.exports = { route(path, "proxy.tsx", { id: path }); } route("/__/realtime/*", "realtime.tsx"); + route("/robots.txt", "robots.tsx"); route("*", "app.tsx"); }); },