fix: Traefik middleware
This commit is contained in:
parent
cf88885c94
commit
e39541c318
1 changed files with 1 additions and 1 deletions
|
|
@ -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`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue