mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Ported sanity studio to Next js app
This commit is contained in:
8
app/(studio)/studio/[[...index]]/page.tsx
Normal file
8
app/(studio)/studio/[[...index]]/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { NextStudio } from 'next-sanity/studio';
|
||||
import config from '@/sanity.config';
|
||||
|
||||
export default function AdminPage() {
|
||||
return <NextStudio config={config} />;
|
||||
}
|
14
app/(studio)/studio/layout.tsx
Normal file
14
app/(studio)/studio/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import './../../globals.css';
|
||||
|
||||
export const metadata = {
|
||||
title: `Studio | ${process.env.SITE_NAME}`,
|
||||
description: 'KM Storefront studio admin interface.'
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user