Update React Editor integration and clean up template
This commit is contained in:
+1
-4
@@ -1,9 +1,6 @@
|
||||
import PageEditor from '@/components/page-editor';
|
||||
import pageData from '../page.json';
|
||||
|
||||
// Editor for /. Sitting under the route it edits means the preview
|
||||
// resolves the same params the public page gets, and `../page.json` is the
|
||||
// very file publishing writes back to.
|
||||
export default function EditorPage() {
|
||||
return <PageEditor routeKey="/" page={pageData} />;
|
||||
return <PageEditor pagePath="app/page.json" page={pageData} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user