Fix build errors
This commit is contained in:
parent
5a1be0de94
commit
5ff5eb4213
2 changed files with 492 additions and 2279 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { NextResponse } from "next/server";
|
||||
import { withAuth, NextRequestWithAuth } from "next-auth/middleware";
|
||||
|
||||
/*
|
||||
const rewriteURL = (
|
||||
request: NextRequestWithAuth,
|
||||
originBaseURL: string,
|
||||
|
|
@ -28,7 +27,7 @@ const rewriteURL = (
|
|||
request: { headers: requestHeaders },
|
||||
});
|
||||
};
|
||||
*/
|
||||
|
||||
const checkRewrites = async (request: NextRequestWithAuth) => {
|
||||
const linkBaseURL = process.env.LINK_URL ?? "http://localhost:3000";
|
||||
const zammadURL = process.env.ZAMMAD_URL ?? "http://zammad-nginx:8080";
|
||||
|
|
@ -111,6 +110,7 @@ const checkRewrites = async (request: NextRequestWithAuth) => {
|
|||
|
||||
return response;
|
||||
};
|
||||
}
|
||||
|
||||
export default withAuth(checkRewrites, {
|
||||
callbacks: {
|
||||
|
|
@ -143,4 +143,4 @@ export const config = {
|
|||
matcher: [
|
||||
"/((?!ws|wss|api/signal|api/whatsapp|_next/static|_next/image|favicon.ico).*)",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
|
|
|||
2765
package-lock.json
generated
2765
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue