Skip to content

Commit

Permalink
feat: studio layout as server component
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 26, 2025
1 parent a909bfc commit 3f065f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/app/(studio)/admin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use client";

/**
* This route is responsible for the built-in authoring environment using Sanity Studio.
* All routes under your studio path is handled by this file using Next.js' catch-all routes:
Expand All @@ -14,7 +12,7 @@ import config from "../../../sanity.config";

export const dynamic = "force-static";

export { viewport } from "next-sanity/studio";
export { viewport, metadata } from "next-sanity/studio";

export default function StudioPage() {
return <NextStudio history="hash" config={config} />;
Expand Down

0 comments on commit 3f065f2

Please sign in to comment.