Skip to content

Commit

Permalink
Merge pull request #1448 from codyogden/codyogden-patch-1
Browse files Browse the repository at this point in the history
Analytics Changes
  • Loading branch information
codyogden authored Oct 9, 2023
2 parents 40280b3 + fa94e45 commit dc70929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ module.exports = {
destination: '/api/graveyard',
permanent: true,
},
{
source: '/umami.js',
destination: '/_next/static/umami.js',
permanent: true,
}
];
},
rewrites() {
return [
{
source: '/umami.js',
source: '/_next/static/umami.js',
destination: 'https://analytics.bale.media/script.js'
},
{
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare global {

const MyApp: React.FC<AppProps> = ({ Component, pageProps }) => {
return <>
<script async defer data-website-id={process.env.UMAMI_ID} src="/umami.js" />
<script async defer data-website-id={process.env.UMAMI_ID} src="/_next/static/umami.js" />
<Component {...pageProps} />
</>
}
Expand Down

1 comment on commit dc70929

@vercel
Copy link

@vercel vercel bot commented on dc70929 Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.