mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 20:15:36 +00:00
fix: Traefik middleware
This commit is contained in:
1 parent
cf88885c94
commit
e39541c318
1 file changed
+1
-1
@@ -126,7 +126,7 @@ function configureMiddleware(
|
||||
}
|
||||
}
|
||||
|
||||
if (type === 'plausibleanalytics' && scriptName !== 'plausible.js') {
|
||||
if (type === 'plausibleanalytics' && scriptName && scriptName !== 'plausible.js') {
|
||||
if (!traefik.http.routers[`${id}`].middlewares.includes(`${id}-redir`)) {
|
||||
traefik.http.routers[`${id}`].middlewares.push(`${id}-redir`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user