Add rewrite for script in cloud mode.
This commit is contained in:
1 parent
8a13e2c70a
commit
a8e3b5efbc
1 file changed
+7
@@ -155,6 +155,13 @@ if (trackerScriptName) {
|
||||
}
|
||||
}
|
||||
|
||||
if (cloudMode) {
|
||||
rewrites.push({
|
||||
source: '/script.js',
|
||||
destination: 'https://cloud.umami.is/script.js',
|
||||
});
|
||||
}
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
export default {
|
||||
reactStrictMode: false,
|
||||
|
||||
Reference in new issue
Block a user