mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2025-02-01 13:27:43 +02:00
chore: Remove debug logging, move cf beacon to header
This commit is contained in:
parent
8c4ac3e9e4
commit
f7bc793dc4
@ -56,8 +56,6 @@ export const Comments: React.FC<CommentsProps> = ({ blueprint_page_id }) => {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
console.log({ comments });
|
||||
|
||||
const onSubmitComment: FormEventHandler<HTMLFormElement> = async (event) => {
|
||||
event.preventDefault();
|
||||
const result = await fetch("/api/blueprint/comment", {
|
||||
|
@ -84,6 +84,13 @@ const BlueprintsApp = ({
|
||||
<title>Factorio Blueprints</title>
|
||||
<link rel="shortcut icon" href={`${PUBLIC_URL}/favicon.png`} />
|
||||
<meta name="description" content="Find blueprints for Factorio with advanced search" />
|
||||
{CF_WEB_ANALYTICS && (
|
||||
<script
|
||||
defer
|
||||
src="https://static.cloudflareinsights.com/beacon.min.js"
|
||||
data-cf-beacon={`{"token": "${CF_WEB_ANALYTICS}"}`}
|
||||
></script>
|
||||
)}
|
||||
</Head>
|
||||
{!auth.loading && (
|
||||
<>
|
||||
@ -95,13 +102,6 @@ const BlueprintsApp = ({
|
||||
</main>
|
||||
</>
|
||||
)}
|
||||
{CF_WEB_ANALYTICS && (
|
||||
<script
|
||||
defer
|
||||
src="https://static.cloudflareinsights.com/beacon.min.js"
|
||||
data-cf-beacon={`{"token": "${CF_WEB_ANALYTICS}"}`}
|
||||
></script>
|
||||
)}
|
||||
</AuthContext.Provider>
|
||||
</CookiesProvider>
|
||||
</ChakraProvider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user