Skip to content

[SPARKS] add email newsletter subscription form#199

Merged
ilmiawan merged 5 commits into
mainfrom
newsletter_subscription
Jul 7, 2026
Merged

[SPARKS] add email newsletter subscription form#199
ilmiawan merged 5 commits into
mainfrom
newsletter_subscription

Conversation

@ilmiawan

@ilmiawan ilmiawan commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Add email newsletter subscription form to the inference-ai service.

Screenshot 2026-07-02 at 07 29 08

Language Selections :

Screenshot 2026-07-02 at 07 29 28

@ilmiawan ilmiawan self-assigned this Jul 2, 2026
@ilmiawan ilmiawan requested a review from nicnocquee July 3, 2026 03:01
ilmiawan and others added 2 commits July 3, 2026 16:28
…copy

Protect /api/subscribe from abuse with Cloudflare Turnstile, verified
server-side before forwarding to FrontierNotes. Also add German digest
language option and make all form copy (heading, subheading, CTA, etc.)
follow the selected digest language instead of the page locale, with
Sundanese copy included.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Comment thread app/api/subscribe/route.ts Outdated
@@ -0,0 +1,82 @@
import { NextRequest, NextResponse } from "next/server";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We deploy on GitHub pages, I think server side doesn't work there.

Comment thread locales/en/ai.json
"description": "Innovative products tailored to support your goals and scale with your needs."
},
"newsletter": {
"heading": "Stay Ahead of the Curve",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use sentence case (e.g., Stay ahead of the curve) to be consistent with the other heading on this website.

hyperjump.tech deploys as a full static export (output: "export") to
GitHub Pages, so the Next.js API route added for Turnstile verification
never actually ran in production. Turnstile siteverify moves to
FrontierNotes; the frontend now fetches NEXT_PUBLIC_FRONTIERNOTES_API_URL
directly without a server-side proxy or Authorization header.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ilmiawan ilmiawan merged commit 37c6fce into main Jul 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants