Skip to content

Commit

Permalink
trying rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Nov 6, 2024
1 parent 0a9a9eb commit 8efb4ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function RootLayout({
{process.env.NEXT_PUBLIC_ENABLE_UNAMI === "true" && (
<Script
defer
src="http://145.223.79.119:3000/script.js"
src="/umami.js"
data-website-id="9591881c-31c9-4fea-9c33-cf8272fa2b4e"
/>
)}
Expand Down
10 changes: 9 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
output: "standalone",
async rewrites() {
return [
{
source: "/umami.js",
destination: "http://145.223.79.119:3000/script.js",
},
];
},
};

export default nextConfig;

0 comments on commit 8efb4ee

Please sign in to comment.