Skip to content

Commit 17351c4

Browse files
committed
fix: fix event endpoint redirecting
1 parent 5382f27 commit 17351c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ module.exports = {
8181
destination: 'https://app.lythia.dev/collect/analytics/script.js',
8282
},
8383
{
84-
source: '/lythia/a/event/',
84+
source: '/lythia/a/event',
8585
destination: 'https://app.lythia.dev/collect/analytics/report',
8686
},
8787
{
8888
source: '/lythia/m.js',
8989
destination: 'https://app.lythia.dev/collect/metrics/script.js',
9090
},
9191
{
92-
source: '/lythia/m/event/',
92+
source: '/lythia/m/event',
9393
destination: 'https://app.lythia.dev/collect/metrics/report',
9494
},
9595
]

pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ function WitchTrade({ Component, pageProps }: AppProps) {
102102
<Script
103103
defer
104104
data-domain='witchtrade.org'
105-
data-api='/lythia/a/event/'
105+
data-api='/lythia/a/event'
106106
src='/lythia/a.js'
107107
/>
108108
<Script
109109
defer
110110
data-domain='witchtrade.org'
111-
data-api='/lythia/m/event/'
111+
data-api='/lythia/m/event'
112112
src='/lythia/m.js'
113113
/>
114114
</>

0 commit comments

Comments
 (0)