mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
adding organization feature.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// import {NextResponse} from "next/server";
|
||||
// import {useStore} from "@/state-management/store";
|
||||
//
|
||||
// export function middleware(req) {
|
||||
// // const organizationId = req.cookies.get("organizationId") || "default"; // Retrieve from cookies
|
||||
// const url = req.nextUrl.clone();
|
||||
// const {organizationId, moveToAnotherOrganization} = useStore((state) => state);
|
||||
// console.log("middlewaressss", organizationId);
|
||||
// // url.searchParams.set("organizationId", organizationId); // Append to query string
|
||||
// return NextResponse.rewrite(url);
|
||||
// }
|
||||
Reference in New Issue
Block a user