resolve variables

master
Robert Burgess 2024-08-18 01:51:10 -04:00
parent f1eb9d827b
commit 17789af363
4 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@ -2,8 +2,9 @@
import React, { useRef, useState } from "react" import React, { useRef, useState } from "react"
import ReCAPTCHA from "react-google-recaptcha"; import ReCAPTCHA from "react-google-recaptcha";
import { toast } from "react-hot-toast"; import { toast } from "react-hot-toast";
const { RECAPTCHA_SITE_KEY } = process.env; const { NEXT_PUBLIC_RECAPTCHA_SITE_KEY } = process.env;
console.log( RECAPTCHA_SITE_KEY )
console.log(`Recaptcha Site Key: ${NEXT_PUBLIC_RECAPTCHA_SITE_KEY}`);
export default function ContactUsContent() { export default function ContactUsContent() {
const recaptchaRef = useRef(null); const recaptchaRef = useRef(null);
@ -99,7 +100,7 @@ export default function ContactUsContent() {
</div> </div>
</div> </div>
<div className="mt-6"> <div className="mt-6">
<ReCAPTCHA ref={recaptchaRef} size="invisible" sitekey={`${RECAPTCHA_SITE_KEY}`} onChange={onReCAPTCHAChange} /> <ReCAPTCHA ref={recaptchaRef} size="invisible" sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY} onChange={onReCAPTCHAChange} />
</div> </div>
<div className="mt-6"> <div className="mt-6">
<button <button

View File

@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
output: 'standalone' output: 'standalone'
} }
module.exports = nextConfig module.exports = nextConfig

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "SimplySyncedLLC_Website", "name": "SimplySyncedLLC_Website",
"version": "1.1.0", "version": "1.2.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "SimplySyncedLLC_Website", "name": "SimplySyncedLLC_Website",
"version": "1.1.0", "version": "1.2.0",
"dependencies": { "dependencies": {
"@headlessui/react": "^1.7.14", "@headlessui/react": "^1.7.14",
"@sendgrid/mail": "^8.1.3", "@sendgrid/mail": "^8.1.3",