Add ws to zammad paths

This commit is contained in:
Darren Clarke 2023-02-22 14:08:53 +00:00
parent 4517241ead
commit d7624d723f
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ export default withAuth((request: NextRequest) => {
console.log("INTO middleware")
const path = request.nextUrl.pathname
console.log({ path })
const zammadPaths = ['/zammad', '/assets', '/api/v1', '/auth/sso'];
const zammadPaths = ['/zammad', '/assets', '/api/v1', '/auth/sso', '/ws'];
if (zammadPaths.some((p) => path.startsWith(p))) {
console.log("MATCHED ZAMMAD PATH")
const finalURL = new URL(path.replace("/zammad", ""), process.env.ZAMMAD_URL)