Add rewrite for script in cloud mode.
Some checks are pending
Create docker images (cloud) / Build, push, and deploy (push) Waiting to run
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run

This commit is contained in:
Mike Cao 2025-10-08 16:01:47 -07:00
parent 8a13e2c70a
commit a8e3b5efbc

View file

@ -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,