From a8e3b5efbc004b1f046a446aaed3855c74926048 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 8 Oct 2025 16:01:47 -0700 Subject: [PATCH] Add rewrite for script in cloud mode. --- next.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/next.config.ts b/next.config.ts index e4fe228c..b2b1c18d 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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,