diff --git a/src/components/react/cms/admin.tsx b/src/components/react/cms/admin.tsx index 9d0570a..62dbe7a 100644 --- a/src/components/react/cms/admin.tsx +++ b/src/components/react/cms/admin.tsx @@ -4,7 +4,6 @@ import "@staticcms/core/dist/main.css"; import { config } from "./config"; import type { FC } from "react"; import React from "react"; -import { createRoot } from "react-dom/client"; const PostDraftFieldPreview: React.FC = ({ value }) => { return ( diff --git a/src/components/react/cms/config.ts b/src/components/react/cms/config.ts index cec269f..f3eaf3e 100644 --- a/src/components/react/cms/config.ts +++ b/src/components/react/cms/config.ts @@ -3,11 +3,10 @@ import type { Config } from "@staticcms/core"; export const config: Config = { local_backend: true, backend: { - name: "git-gateway", - site_domain: "https://daliborhon-dev.netlify.app", - auth_endpoint: "/.netlify/identity/", - //repo: "dallyh/daliborhon.dev", + name: "github", + site_domain: "daliborhon-dev.netlify.app", //site_domain: "fe45932a-7f17-4972-a91c-346bcf16134a", // Netlify Site ID sent do "site_id" URL query + repo: "dallyh/daliborhon.dev", branch: "blog-test", commit_messages: { create: 'Create {{collection}} "{{slug}}"', diff --git a/src/pages/admin/index.astro b/src/pages/admin/index.astro index d079a5c..c7bc336 100644 --- a/src/pages/admin/index.astro +++ b/src/pages/admin/index.astro @@ -8,7 +8,6 @@ import Admin from "@components/react/cms/admin"; - Content Manager - Static CMS