Skip to content

Commit

Permalink
Hotfix for apps
Browse files Browse the repository at this point in the history
issues with secret retrieval from GH Pages was causing failure in convertkit submission.
  • Loading branch information
tomtranmer committed Sep 13, 2023
1 parent 603f14b commit 867a1c0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/ContactUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ContactUs = () => {
// contactUsInfo
// );

await fetch(`https://formsubmit.co/ajax/${process.env.NEXT_PUBLIC_MAIL_ID}`, {
await fetch(`https://formsubmit.co/ajax/[email protected]`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(contactUsInfo),
Expand Down
9 changes: 9 additions & 0 deletions env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DATABASE_URI="."

NEXT_PUBLIC_CONVERTKIT_API_KEY="XLzmLAWn9RcqmyHc57xV0g"
NEXT_PUBLIC_CONVERTKIT_API_TAG="3960977"
NEXT_PUBLIC_MAIL_ID="[email protected]"

CONVERTKIT_API_KEY="XLzmLAWn9RcqmyHc57xV0g"
CONVERTKIT_API_TAG="3960977"
PUBLIC_MAIL_ID="[email protected]"
3 changes: 0 additions & 3 deletions env.local.txt

This file was deleted.

8 changes: 4 additions & 4 deletions src/pages/landingpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const LandingPage = () => {
const [waitlistEmail, setWaitlistEmail] = useState("");

// local testing
//const MY_API_KEY = process.env.NEXT_PUBLIC_CONVERTKIT_API_KEY;
//const MY_API_TAG = process.env.NEXT_PUBLIC_CONVERTKIT_API_TAG;
const MY_API_KEY = "XLzmLAWn9RcqmyHc57xV0g"; //process.env.NEXT_PUBLIC_CONVERTKIT_API_KEY;
const MY_API_TAG = "3960977"; process.env.NEXT_PUBLIC_CONVERTKIT_API_TAG;

// production GH Pages
const MY_API_KEY = process.env.CONVERTKIT_API_KEY;
const MY_API_TAG = process.env.NEXT_PUBLIC_CONVERTKIT_API_TAG;
// const MY_API_KEY = process.env.CONVERTKIT_API_KEY;
// const MY_API_TAG = process.env.NEXT_PUBLIC_CONVERTKIT_API_TAG;

const handleSubmitWaitlist: FormEventHandler<HTMLFormElement> = async (
ev
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1282,10 +1282,10 @@
dependencies:
glob "7.1.7"

"@next/swc-darwin-x64@13.2.1":
"@next/swc-darwin-arm64@13.2.1":
version "13.2.1"
resolved "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.2.1.tgz"
integrity sha512-HGqVqmaZWj6zomqOZUVbO5NhlABL0iIaxTmd0O5B0MoMa5zpDGoaHSG+fxgcWMXcGcxmUNchv1NfNOYiTKoHOg==
resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.2.1.tgz"
integrity sha512-gvqm+fGMYxAkwBapH0Vvng5yrb6HTkIvZfY4oEdwwYrwuLdkjqnJygCMgpNqIFmAHSXgtlWxfYv1VC8sjN81Kw==

"@nodelib/[email protected]":
version "2.1.5"
Expand Down

0 comments on commit 867a1c0

Please sign in to comment.