File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import { terser } from 'rollup-plugin-terser';
6
6
export default {
7
7
input : 'tracker/index.js' ,
8
8
output : {
9
- file : 'public/umami .js' ,
9
+ file : 'public/script .js' ,
10
10
format : 'iife' ,
11
11
} ,
12
12
plugins : [
13
13
replace ( {
14
- '/api/collect ' : process . env . COLLECT_API_ENDPOINT || '/api/collect ' ,
14
+ '/api/send ' : process . env . COLLECT_API_ENDPOINT || '/api/send ' ,
15
15
delimiters : [ '' , '' ] ,
16
16
preventAssignment : true ,
17
17
} ) ,
Original file line number Diff line number Diff line change 61
61
const root = hostUrl
62
62
? hostUrl . replace ( / \/ $ / , '' )
63
63
: currentScript . src . split ( '/' ) . slice ( 0 , - 1 ) . join ( '/' ) ;
64
- const endpoint = `${ root } /api/collect ` ;
64
+ const endpoint = `${ root } /api/send ` ;
65
65
const screen = `${ width } x${ height } ` ;
66
66
const eventClass = / ^ u m a m i - - ( [ a - z ] + ) - - ( [ \w ] + [ \w - ] * ) $ / ;
67
67
const eventSelect = "[class*='umami--']" ;
You can’t perform that action at this time.
0 commit comments