Compare commits
No commits in common. "19fa2651660f34caf8efd226478dcab958eaa4c7" and "a31379614389a0e3654ea155c8b0e8df0ecc4138" have entirely different histories.
19fa265166
...
a313796143
@ -9,7 +9,7 @@ export function middleware(request: NextRequest) {
|
|||||||
if (pathname == "/") {
|
if (pathname == "/") {
|
||||||
if (playerIdCookie) {
|
if (playerIdCookie) {
|
||||||
return NextResponse.redirect(
|
return NextResponse.redirect(
|
||||||
new URL(`/player/${playerIdCookie.value}`, request.url),
|
new URL(`/player/${playerIdCookie}`, request.url),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return NextResponse.redirect(new URL("/search", request.url));
|
return NextResponse.redirect(new URL("/search", request.url));
|
||||||
|
@ -44,9 +44,7 @@ export const useSettingsStore = create<SettingsStore>()(
|
|||||||
player: playerData,
|
player: playerData,
|
||||||
});
|
});
|
||||||
|
|
||||||
cookieCutter.set("playerId", playerData.id, {
|
cookieCutter.set("playerId", playerData.id);
|
||||||
path: "/",
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async addFriend(friendId: string) {
|
async addFriend(friendId: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user