From f21a8959ffe10dbde1c43ae35e97bb9e5d510fa7 Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Sun, 4 Feb 2024 14:08:04 -0600 Subject: [PATCH 1/3] Add image type declarations --- src/types/images.d.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/types/images.d.ts diff --git a/src/types/images.d.ts b/src/types/images.d.ts new file mode 100644 index 0000000..ba9c30b --- /dev/null +++ b/src/types/images.d.ts @@ -0,0 +1,3 @@ +declare module "*.png" +declare module "*.jpg" +declare module "*.jpeg" From 519fac4a67b131e4a65d30851fc40e2fd5f78212 Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Sun, 4 Feb 2024 19:16:17 -0600 Subject: [PATCH 2/3] Nova settings --- .nova/Configuration.json | 3 ++- .nova/Tasks/Custom Task.json | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .nova/Tasks/Custom Task.json diff --git a/.nova/Configuration.json b/.nova/Configuration.json index 5d91726..c4f0dc1 100644 --- a/.nova/Configuration.json +++ b/.nova/Configuration.json @@ -1,3 +1,4 @@ { - "workspace.color": 12 + "editor.default_syntax" : "tsx", + "workspace.color" : 3 } diff --git a/.nova/Tasks/Custom Task.json b/.nova/Tasks/Custom Task.json new file mode 100644 index 0000000..434564e --- /dev/null +++ b/.nova/Tasks/Custom Task.json @@ -0,0 +1,8 @@ +{ + "actions" : { + "run" : { + "enabled" : true, + "script" : "bun run dev" + } + } +} From 435ca8ed5ffb5d3f47b849969badb8de93e172a4 Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Sun, 4 Feb 2024 19:16:26 -0600 Subject: [PATCH 3/3] Generate robots.txt --- src/app/robots.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/app/robots.ts diff --git a/src/app/robots.ts b/src/app/robots.ts new file mode 100644 index 0000000..5d2d52d --- /dev/null +++ b/src/app/robots.ts @@ -0,0 +1,14 @@ +import { type MetadataRoute } from "next" +import { env } from "~/env" + +export default function robots(): MetadataRoute.Robots { + const baseUrl = env.SITE_URL ?? "http://localhost:3000" + return { + rules: { + userAgent: "*", + allow: "/", + disallow: "/private/", + }, + sitemap: baseUrl + "/sitemap.xml", + } +}