Add rewrite for script in cloud mode.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user