.env file in the client/ directory and populate it with the variables below. You can use client/.example.env as your starting template.
client/.env
Variables
boolean
default:"false"
Set to
true to enable Next.js bundle analysis. When enabled, the build process generates a detailed bundle report useful for debugging and optimizing bundle size. Set to false in production.string
default:"3000"
The port the Next.js development server listens on. Defaults to
3000. Change this if port 3000 is already in use on your system.string
required
Your Cloudflare Turnstile site key. This is the public key embedded in the client to render the Turnstile challenge widget.
Obtain your site key from the Cloudflare Turnstile dashboard. The corresponding secret key goes in the server’s
CLOUDFLARE_TURNSTILE_SECRET_KEY variable.string
required
A shared secret between the Next.js client and the Express server. This value is attached to requests made by the client’s server-side rendering so the server can verify their origin.
string
required
The base URL of your CDN, used to serve emoji images and sound files. All asset URLs are constructed relative to this value.Must be a valid URL with no trailing slash, e.g.
https://cdn.yourdomain.com.This should point to the same CDN bucket configured on the server side via
CDN_URL. See Server Environment Variables for details.
