From 5f62a7b8707361e1496090f0258b8ca2f679b00d Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 9 Jul 2023 19:38:29 -0700 Subject: [PATCH 1/5] proxy for url_shortener --- remix.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/remix.config.js b/remix.config.js index a4e4fff..b2896ef 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,6 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", + "/l/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ From 3f7efd318ef5a92400b79d63d974ee3c589cc554 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Sun, 9 Jul 2023 19:38:31 -0700 Subject: [PATCH 2/5] package lock --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From 6c06a8d4eed196c9471a06e62fed8124cafc73ec Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Mon, 10 Jul 2023 01:40:18 -0700 Subject: [PATCH 3/5] added robots.txt and renamed proxy endpoint --- app/robots.tsx | 14 ++++++++++++++ remix.config.js | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 app/robots.tsx 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/remix.config.js b/remix.config.js index b2896ef..3d1ed96 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/l/*", + "/q/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ @@ -54,6 +54,7 @@ module.exports = { route(path, "proxy.tsx", { id: path }); } route("/__/realtime/*", "realtime.tsx"); + route("/robots.txt", "robots.tsx"); route("*", "app.tsx"); }); }, From 0aa15a61b695e67f2d3154bad629d3afb3960cab Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 11 Jul 2023 17:31:20 -0700 Subject: [PATCH 4/5] use /s instead of /q --- remix.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix.config.js b/remix.config.js index 3d1ed96..a141665 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/q/*", + "/s/*", ]; /** @type {import('@remix-run/dev').AppConfig} */ From 4ed23502d2513aab0e52f58d4fca8d6d3a68742a Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 11 Jul 2023 23:40:12 -0700 Subject: [PATCH 5/5] renamed endpoint again --- remix.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix.config.js b/remix.config.js index a141665..7df5996 100644 --- a/remix.config.js +++ b/remix.config.js @@ -18,7 +18,7 @@ const proxyUrls = [ "/favicon.ico", "/sitemap.xml/", "/__/*", - "/s/*", + "/2/*", ]; /** @type {import('@remix-run/dev').AppConfig} */