From 141f5f9bc01b582fecbf8301cf01fc7a384593c1 Mon Sep 17 00:00:00 2001 From: Valentin Thomas Date: Thu, 21 Nov 2024 19:41:38 +0000 Subject: [PATCH] Some build issues --- app/lib/env.server.ts | 3 +-- app/routes/health.tsx | 11 ++++++----- app/routes/sitemap[.xml]/route.tsx | 2 +- package.json | 2 +- yarn.lock | 10 +++++----- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/lib/env.server.ts b/app/lib/env.server.ts index 46783fd..6037f82 100644 --- a/app/lib/env.server.ts +++ b/app/lib/env.server.ts @@ -5,8 +5,7 @@ export const publicEnvSchema = zod.object({ NODE_ENV: zod.enum(["development", "production", "test"]), APP_NAME: zod.string().default("Valentin Thomas"), APP_URL: zod.string().default("https://www.valentin-thomas.com"), - VERCEL_ANALYTICS_ID: zod.string().optional(), - VERCEL_URL: zod + COOLIFY_URL: zod .string() .optional() .default("https://www.valentin-thomas.com"), diff --git a/app/routes/health.tsx b/app/routes/health.tsx index b1ebce7..b68f266 100644 --- a/app/routes/health.tsx +++ b/app/routes/health.tsx @@ -1,7 +1,8 @@ -import { json } from "@remix-run/node" +import { json } from "@remix-run/node"; export const loader = () => { - return json({ - status: 'healthy' - }) -} \ No newline at end of file + return json({ + status: "healthy", + buildDate: BUILD_DATE, + }); +}; diff --git a/app/routes/sitemap[.xml]/route.tsx b/app/routes/sitemap[.xml]/route.tsx index 96661c1..06c64dd 100644 --- a/app/routes/sitemap[.xml]/route.tsx +++ b/app/routes/sitemap[.xml]/route.tsx @@ -19,7 +19,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => { const dateContent = isDevelopment() ? new Date().toISOString() : BUILD_DATE; - const host = getEnv("VERCEL_URL"); + const host = getEnv("COOLIFY_URL"); const xmlContent = [ ``, diff --git a/package.json b/package.json index 17ae324..376f086 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "classnames": "^2.5.1", "clsx": "^2.1.1", "crypto-js": "^4.1.1", - "isbot": "^5.1.17", + "isbot": "3.8.0", "lucide-react": "^0.427.0", "luxon": "^3.5.0", "nodemailer": "^6.9.14", diff --git a/yarn.lock b/yarn.lock index f3ae9c0..e27c63e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6195,16 +6195,16 @@ isarray@~1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +isbot@3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/isbot/-/isbot-3.8.0.tgz#b1f8e3d19aca0961b5ed27b62bb8bb0a275781e4" + integrity sha512-vne1mzQUTR+qsMLeCBL9+/tgnDXRyc2pygLGl/WsgA+EZKIiB5Ehu0CiVTHIIk30zhJ24uGz4M5Ppse37aR0Hg== + isbot@^3.6.8: version "3.7.1" resolved "https://registry.yarnpkg.com/isbot/-/isbot-3.7.1.tgz#83655e59bfae8cd410d3c63b398c8ad813bf3fdf" integrity sha512-JfqOaY3O1lcWt2nc+D6Mq231CNpwZrBboLa59Go0J8hjGH+gY/Sy0CA/YLUSIScINmAVwTdJZIsOTk4PfBtRuw== -isbot@^5.1.17: - version "5.1.17" - resolved "https://registry.yarnpkg.com/isbot/-/isbot-5.1.17.tgz#ad7da5690a61bbb19056a069975c9a73182682a0" - integrity sha512-/wch8pRKZE+aoVhRX/hYPY1C7dMCeeMyhkQLNLNlYAbGQn9bkvMB8fOUXNnk5I0m4vDYbBJ9ciVtkr9zfBJ7qA== - isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"