The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: point analytics script to local proxy and add rewrites (#37)

authored by

Luna Seemann and committed by
GitHub
9ca909da 6e4b45df

+12 -1
+2 -1
app/layout.tsx
··· 108 108 <Script 109 109 defer 110 110 data-domain="wamellow.com" 111 - src="https://analytics.wamellow.com/js/script.outbound-links.js" 111 + data-api="/api/event" 112 + src="/static/analytics.js" 112 113 /> 113 114 114 115 <Script
+10
next.config.ts
··· 24 24 "@radix-ui/react-tooltip" 25 25 ] 26 26 }, 27 + rewrites: () => [ 28 + { 29 + source: "/static/analytics.js", 30 + destination: `${process.env.INTERNAL_PLAUSIBLE_API || "http://172.17.0.1"}:7004/js/script.outbound-links.js` 31 + }, 32 + { 33 + source: "/api/event", 34 + destination: `${process.env.INTERNAL_PLAUSIBLE_API || "http://172.17.0.1"}:7004/api/event` 35 + } 36 + ], 27 37 images: { 28 38 localPatterns: [ 29 39 {