mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 12:06:39 -04:00
remove prisma accelerate extension
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useActionState } from "react";
|
||||
import { useActionState } from "react";
|
||||
import TextareaAutosize from "react-textarea-autosize";
|
||||
import Turnstile from "react-turnstile";
|
||||
import clsx from "clsx";
|
||||
@ -18,7 +18,6 @@ const ContactForm = () => {
|
||||
Partial<{ success: boolean; message: string; payload: FormData }>,
|
||||
FormData
|
||||
>(sendMessage, {});
|
||||
const [turnstileToken, setTurnstileToken] = useState<string>("");
|
||||
|
||||
return (
|
||||
<form action={formAction}>
|
||||
@ -81,13 +80,11 @@ const ContactForm = () => {
|
||||
|
||||
<Turnstile
|
||||
sitekey={process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || "1x00000000000000000000AA"}
|
||||
onVerify={(token) => setTurnstileToken(token)}
|
||||
style={{ margin: "1em 0" }}
|
||||
theme={activeTheme === "dark" ? activeTheme : "light"}
|
||||
fixedSize
|
||||
/>
|
||||
|
||||
<input type="hidden" name="cf-turnstile-response" value={turnstileToken} />
|
||||
|
||||
<div className={styles.actionRow}>
|
||||
{!formState.success && (
|
||||
<button type="submit" disabled={pending} className={styles.submitButton}>
|
||||
|
@ -55,9 +55,8 @@ export default function Page() {
|
||||
|
||||
<p>
|
||||
A very simple hit counter on each blog post tallies an aggregate number of pageviews (i.e.{" "}
|
||||
<CodeInline>hits = hits + 1</CodeInline>) in a{" "}
|
||||
<Link href="https://www.prisma.io/postgres">Prisma Postgres</Link> database. Individual views and identifying
|
||||
(or non-identifying) details are <strong>never stored or logged</strong>.
|
||||
<CodeInline>hits = hits + 1</CodeInline>) in a <Link href="https://neon.tech/">Neon Postgres</Link> database.
|
||||
Individual views and identifying (or non-identifying) details are <strong>never stored or logged</strong>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user