This MR fixes critical authentication issues that prevented login on localhost and improves the developer experience with consolidated rebuild scripts and a working help modal keyboard shortcut. #5
@ -4,6 +4,9 @@ import { prisma } from "@/lib/prisma"
|
||||
import { hashPassword } from "@/lib/utils"
|
||||
import { logger } from "@/lib/logger"
|
||||
|
||||
// Mark this route as dynamic to prevent build-time data collection
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
try {
|
||||
const session = await auth()
|
||||
|
||||
@ -4,6 +4,9 @@ import { cookies } from "next/headers"
|
||||
import { SESSION_COOKIE_NAME } from "@/lib/constants"
|
||||
import { logger } from "@/lib/logger"
|
||||
|
||||
// Mark this route as dynamic to prevent build-time data collection
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
/**
|
||||
* Debug endpoint for session inspection
|
||||
* ADMIN ONLY - Protected endpoint for debugging session issues
|
||||
|
||||
@ -31,6 +31,9 @@ import { join } from "path"
|
||||
import { existsSync, mkdirSync } from "fs"
|
||||
import { createHash } from "crypto"
|
||||
|
||||
// Mark this route as dynamic to prevent build-time data collection
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
try {
|
||||
const session = await auth()
|
||||
|
||||
@ -9,6 +9,9 @@ import { join } from "path"
|
||||
import { existsSync, mkdirSync } from "fs"
|
||||
import { createHash } from "crypto"
|
||||
|
||||
// Mark this route as dynamic to prevent build-time data collection
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
try {
|
||||
const session = await auth()
|
||||
|
||||
@ -5,6 +5,9 @@ import { logger } from "@/lib/logger"
|
||||
import bcrypt from "bcryptjs"
|
||||
import { hashPassword } from "@/lib/utils"
|
||||
|
||||
// Mark this route as dynamic to prevent build-time data collection
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
try {
|
||||
const session = await auth()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user