fix: hide search
This commit is contained in:
1 file changed
+4
-1
@@ -14,7 +14,9 @@ import { ApiKeysManagement } from "./components/api-keys";
|
||||
|
||||
import "@scalar/api-reference-react/style.css";
|
||||
|
||||
export async function generateMetadata() {
|
||||
import { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const session = await auth();
|
||||
if (!session?.user || !session.user.permissions.includes("admin")) {
|
||||
return {};
|
||||
@@ -59,6 +61,7 @@ export default async function ApiPage() {
|
||||
authentication: {
|
||||
preferredSecurityScheme: "apikey",
|
||||
},
|
||||
hideSearch: true,
|
||||
}}
|
||||
/>
|
||||
</TabsPanel>
|
||||
|
||||
Reference in new issue
Block a user