mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Add rewrite for script in cloud mode.
This commit is contained in:
parent
8a13e2c70a
commit
a8e3b5efbc
1 changed files with 7 additions and 0 deletions
|
|
@ -155,6 +155,13 @@ if (trackerScriptName) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cloudMode) {
|
||||||
|
rewrites.push({
|
||||||
|
source: '/script.js',
|
||||||
|
destination: 'https://cloud.umami.is/script.js',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
export default {
|
export default {
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue