1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 15:05:32 -04:00

prettier dynamic opengraph images 💅

This commit is contained in:
2025-04-16 15:00:02 -04:00
parent a6d4056947
commit e67d49f430
7 changed files with 99 additions and 81 deletions

View File

@@ -72,7 +72,7 @@ export const send = async (state: ContactState, payload: FormData): Promise<Cont
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
secret: env.TURNSTILE_SECRET_KEY || "1x0000000000000000000000000000000AA",
secret: env.TURNSTILE_SECRET_KEY,
response: data.output["cf-turnstile-response"],
remoteip,
}),

View File

@@ -105,7 +105,7 @@ const ContactForm = () => {
</div>
<div style={{ margin: "1em 0" }}>
<Turnstile sitekey={env.NEXT_PUBLIC_TURNSTILE_SITE_KEY || "1x00000000000000000000AA"} fixedSize />
<Turnstile sitekey={env.NEXT_PUBLIC_TURNSTILE_SITE_KEY} fixedSize />
</div>
{!pending && formState.errors?.["cf-turnstile-response"] && (
<span className={styles.errorMessage}>{formState.errors["cf-turnstile-response"][0]}</span>