Skip to content

Commit

Permalink
vercel redirects + umami
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed Feb 7, 2024
1 parent 1306f7a commit 9ef6e3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
9 changes: 9 additions & 0 deletions website/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<html lang="en">
Expand All @@ -14,6 +16,13 @@ export default function App() {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
{isDev && (
<script
async
src="https://umami-nu-bice.vercel.app/script.js"
data-website-id="bc74b9b7-777d-4f2d-8c55-a6e27259207c"
></script>
)}
</head>
<body>
<Outlet />
Expand Down

0 comments on commit 9ef6e3d

Please sign in to comment.