Revert "Upgrade linter and formatter to Ultracite" (#1226)

This commit is contained in:
josh 2025-09-21 12:03:29 +01:00 committed by GitHub
parent 0e320b391d
commit 1aff7d9868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 8334 additions and 6943 deletions

View file

@ -1,2 +1 @@
// biome-ignore lint/performance/noBarrelFile: "Required"
export { GET, POST } from "@/app/(auth)/auth";
export { GET, POST } from '@/app/(auth)/auth';

View file

@ -1,11 +1,11 @@
import { NextResponse } from "next/server";
import { getToken } from "next-auth/jwt";
import { signIn } from "@/app/(auth)/auth";
import { isDevelopmentEnvironment } from "@/lib/constants";
import { signIn } from '@/app/(auth)/auth';
import { isDevelopmentEnvironment } from '@/lib/constants';
import { getToken } from 'next-auth/jwt';
import { NextResponse } from 'next/server';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const redirectUrl = searchParams.get("redirectUrl") || "/";
const redirectUrl = searchParams.get('redirectUrl') || '/';
const token = await getToken({
req: request,
@ -14,8 +14,8 @@ export async function GET(request: Request) {
});
if (token) {
return NextResponse.redirect(new URL("/", request.url));
return NextResponse.redirect(new URL('/', request.url));
}
return signIn("guest", { redirect: true, redirectTo: redirectUrl });
return signIn('guest', { redirect: true, redirectTo: redirectUrl });
}