From 9ef6e3d9044f580c76a78e6e8a2fee6b7e671387 Mon Sep 17 00:00:00 2001 From: Alexandre Stahmer Date: Wed, 7 Feb 2024 18:30:15 +0100 Subject: [PATCH] vercel redirects + umami --- vercel.json | 3 +++ website/app/root.tsx | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..0f32683a9 --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] +} diff --git a/website/app/root.tsx b/website/app/root.tsx index 8a38b6b08..a112ab715 100644 --- a/website/app/root.tsx +++ b/website/app/root.tsx @@ -6,6 +6,8 @@ import pandaCss from '../styled-system/styles.css?url' // export const links: LinksFunction = () => [...(cssBundleHref ? [{ rel: 'stylesheet', href: cssBundleHref }] : [])] export const links: LinksFunction = () => [{ rel: 'stylesheet', href: pandaCss }] +const isDev = import.meta.env.DEV + export default function App() { return ( @@ -14,6 +16,13 @@ export default function App() { + {isDev && ( + + )}