chore(release): remove legacy runtime dependencies
This commit is contained in:
@@ -6,9 +6,8 @@ import {
|
||||
import { getSessionContextFromHeaders } from "@/server/auth/session";
|
||||
|
||||
/**
|
||||
* Legacy adapter for the current client detail screen.
|
||||
* The old endpoint created a Supabase Auth user with a freelancer-chosen password.
|
||||
* It now issues a one-time Better Auth invitation and never accepts a password.
|
||||
* Compatibility adapter for the current client detail screen.
|
||||
* It issues a one-time Better Auth invitation and never accepts a password.
|
||||
*/
|
||||
export async function POST(request: Request) {
|
||||
const actor = await getSessionContextFromHeaders(new Headers(request.headers));
|
||||
@@ -31,7 +30,7 @@ export async function POST(request: Request) {
|
||||
return NextResponse.json({ error: error.message, code: error.code }, { status });
|
||||
}
|
||||
|
||||
console.error("Legacy client invitation adapter failed", error);
|
||||
console.error("Client invitation adapter failed", error);
|
||||
return NextResponse.json({ error: "Müşteri daveti oluşturulamadı." }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ import type { CSSProperties } from "react";
|
||||
import "./globals.css";
|
||||
import { Geist } from "next/font/google";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { OfflineIndicator } from "@/components/ui/offline-indicator";
|
||||
import { Toaster } from "poyraz-ui/molecules";
|
||||
import { getPublicBranding } from "@/server/branding/runtime";
|
||||
|
||||
@@ -54,7 +53,6 @@ export default function RootLayout({
|
||||
</head>
|
||||
<body>
|
||||
{children}
|
||||
<OfflineIndicator />
|
||||
<Toaster closeButton richColors position="top-right" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user