Cyan
Cyan
BROBattleBit Remastered Official
Created by ❀ ᴋʜᴇᴛ ❀ on 2/29/2024 in #help-support
I cant fine any server to play ( The game wont show any server ) I tried redownload the game
Try filtering for more than just 64vs64 servers
18 replies
DTDrizzle Team
Created by Cyan on 10/16/2023 in #help
Drizzle NextJs Middleware
This is what I have in my middleware.
import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'
import { db } from "./db/db";
import { sessions } from "./db/schema";
import { eq } from "drizzle-orm";

export async function middleware(request: NextRequest) {
const queryData = await db.query.sessions.findFirst({
where: eq(sessions.sessionToken, request.cookies.get('next-auth.session-token')?.value as string),
})

return NextResponse.next()
}

export const config = {
matcher: '/placeholder',
}
import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'
import { db } from "./db/db";
import { sessions } from "./db/schema";
import { eq } from "drizzle-orm";

export async function middleware(request: NextRequest) {
const queryData = await db.query.sessions.findFirst({
where: eq(sessions.sessionToken, request.cookies.get('next-auth.session-token')?.value as string),
})

return NextResponse.next()
}

export const config = {
matcher: '/placeholder',
}
5 replies