Skip to content

Commit

Permalink
Try again Github OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalibor Hon committed Jan 2, 2024
1 parent efc9aba commit e4d48a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/components/react/cms/admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<FieldPreviewProps> = ({ value }) => {
return (
Expand Down
7 changes: 3 additions & 4 deletions src/components/react/cms/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"',
Expand Down
9 changes: 0 additions & 9 deletions src/pages/admin/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Admin from "@components/react/cms/admin";
<meta charset="utf-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<title>Content Manager - Static CMS</title>
<style>
html,
Expand All @@ -20,13 +19,5 @@ import Admin from "@components/react/cms/admin";
<body id="root">
<div id="identity"></div>
<Admin client:only="react" />
<!-- <script is:inline>
window.localStorage.setItem("netlifySiteURL", "https://daliborhon-dev.netlify.app/");
const identityOptions = {
APIUrl: "https://daliborhon-dev.netlify.app/.netlify/identity/",
locale: "en",
};
window.netlifyIdentity.init(identityOptions);
</script> -->
</body>
</html>

0 comments on commit e4d48a6

Please sign in to comment.