mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Changed tracker script name.
This commit is contained in:
parent
438eb4bd56
commit
8a59bb0edf
2 changed files with 6 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ if (trackerScriptName) {
|
|||
names.forEach(name => {
|
||||
rewrites.push({
|
||||
source: `/${name.replace(/^\/+/, '')}`,
|
||||
destination: '/script.js',
|
||||
destination: '/tracker.js',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -163,6 +163,10 @@ const config = {
|
|||
async rewrites() {
|
||||
return [
|
||||
...rewrites,
|
||||
{
|
||||
source: '/script.js',
|
||||
destination: 'https://tracker-script.umami.dev/',
|
||||
},
|
||||
{
|
||||
source: '/telemetry.js',
|
||||
destination: '/api/scripts/telemetry',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue