1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 01:01:17 -04:00

remove dependency on uglify-js

This commit is contained in:
2024-02-26 10:49:14 -05:00
parent ace50ff2c9
commit 955cfe421f
19 changed files with 239 additions and 418 deletions

View File

@@ -1,6 +1,7 @@
import HCaptcha from "@hcaptcha/react-hcaptcha";
import useHasMounted from "../../hooks/useHasMounted";
import useTheme from "../../hooks/useTheme";
import { hcaptchaSiteKey } from "../../lib/config";
export type CaptchaProps = {
size?: "normal" | "compact" | "invisible";
@@ -27,7 +28,7 @@ const Captcha = ({ size = "normal", theme, className, ...rest }: CaptchaProps) =
<div className={className}>
{hasMounted && (
<HCaptcha
sitekey={process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY || ""}
sitekey={hcaptchaSiteKey || "10000000-ffff-ffff-ffff-000000000001"}
reCaptchaCompat={false}
tabIndex={0}
size={size}