From e228a699f689294c651d95a8363a77086930cc7f Mon Sep 17 00:00:00 2001 From: Dalibor Hon Date: Tue, 2 Jan 2024 14:18:08 +0100 Subject: [PATCH] Use git-gateway for login with Netlify (test) --- src/components/react/cms/config.ts | 6 +++--- src/pages/admin/index.astro | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/react/cms/config.ts b/src/components/react/cms/config.ts index 8b72bd6..02c6909 100644 --- a/src/components/react/cms/config.ts +++ b/src/components/react/cms/config.ts @@ -3,9 +3,9 @@ import type { Config } from "@staticcms/core"; export const config: Config = { local_backend: true, backend: { - name: "github", - repo: "dallyh/daliborhon.dev", - site_domain: "fe45932a-7f17-4972-a91c-346bcf16134a", // Netlify Site ID sent do "site_id" URL query + name: "git-gateway", + //repo: "dallyh/daliborhon.dev", + //site_domain: "fe45932a-7f17-4972-a91c-346bcf16134a", // Netlify Site ID sent do "site_id" URL query branch: "blog-test", commit_messages: { create: 'Create {{collection}} "{{slug}}"', diff --git a/src/pages/admin/index.astro b/src/pages/admin/index.astro index 5f893bd..be54202 100644 --- a/src/pages/admin/index.astro +++ b/src/pages/admin/index.astro @@ -8,8 +8,7 @@ import Admin from "@components/react/cms/admin"; - - + Content Manager - Static CMS