Skip to content

Environment Variables ​

api.myeasyguide.com ​

Core ​

VariableRequiredNotes
DATABASE_URLyesPostgreSQL connection string to myeasyguide_prod
NODE_ENVyesdevelopment or production
PORTnoDefaults to 3000
BASE_URLyes in prodAbsolute API URL (e.g. https://api.myeasyguide.com)
FRONTEND_BASE_URLyes in prodAbsolute frontend URL (e.g. https://myeasyguide.com)
UPLOADS_BASE_URLnoOptional base for local uploads
FRONTEND_ORIGINSnoComma-separated extra origins allowed by CORS

Auth ​

VariableRequiredNotes
JWT_SECRETyesFor user and supplier tokens
JWT_SECRET_ADMINyesFor admin tokens (separate secret)
JWT_EXPIRYnoSeconds passed to jsonwebtoken. Defaults to 604800 (7 days)
COOKIE_AGEnoCookie max age in milliseconds. Defaults to 604800000 (7 days)
COOKIE_DOMAINnoDefaults to .myeasyguide.com. Set on cookies in production

Email (Resend) ​

VariableRequiredNotes
RESEND_API_KEYprodAPI key
RESEND_FROMprodVerified sender, e.g. MyEasyGuide <no-reply@myeasyguide.com>
RESEND_AUDIENCE_IDnoNewsletter audience for sync (fails soft if missing)
PROBLEM_REPORT_TOnoRecipient for the "Report a problem" dialog. Defaults to meetgrowfore@gmail.com
INQUIRY_RELAY_DOMAINyes for inquiriesDomain that receives inquiry-<id>@<domain> replies (e.g. relay.myeasyguide.com). Enable inbound on this subdomain in Resend.
RESEND_WEBHOOK_SECRETyes for inquiriesSigning secret for POST /api/v1/resend/received (Svix/Resend)
EMAIL_UNSUB_SECRETyesSigns unsubscribe tokens
VERIFICATION_TOKENnoEmail verification token secret
VERIFICATION_LINKnoLegacy/base link used by email helpers
RESET_LINKnoLegacy/base link used by email helpers

Payments ​

VariableRequiredNotes
STRIPE_SECRET_KEYyessk_test_... or sk_live_...
STRIPE_PUB_KEYyesPublishable key
STRIPE_WHSEC_KEYyesWebhook signing secret for /api/v1/stripe/webhook
PLATFORM_COMMISSION_RATEnoDefaults to 0.3 (30%). Must be between 0 and 1.
MIN_PAYOUT_AMOUNTnoDefaults to 50. Must be positive.

Bot protection ​

VariableRequiredNotes
TURNSTILE_SECRETyes for protected actionsCloudflare Turnstile secret key
TURNSTILE_HOSTNAMESnoComma-separated allowlist. In development, mismatches can fail closed depending on setup; in production the allowlist should cover your domains. Actions: trip_inquiry, problem_report, supplier_contact.

Media ​

VariableRequiredNotes
CF_ACCOUNT_IDnoCloudflare Images
CF_API_TOKENnoCloudflare Images
CF_ACCOUNT_HASHnoCloudflare Images account hash; delivery URLs are built as https://imagedelivery.net/{hash}/{id}/public

Integrations (optional) ​

VariableRequiredNotes
RECOMBEE_DBnoRecombee database ID
RECOMBEE_API_TOKENnoRecombee API token
CLAUDE_API_KEYnoUsed by legacy blog generation paths if still present
CLAUDE_MODELnoDefaults to claude-sonnet-4-20250514
TYPESENSE_HOST/PORT/PROTOCOL/API_KEYnoCurrently disabled in the running app. Do not rely on it.

Database tuning (optional) ​

VariableRequiredNotes
DB_POOL_MAXnoPrisma/pg pool max. Defaults to 10
DB_STATEMENT_TIMEOUT_MSnoDefaults to 15000
DB_SLOW_QUERY_MSnoLogged as slow queries. Defaults to 300

Seeding ​

VariableRequiredNotes
SEED_ADMIN_EMAILnoFor pnpm seed:admin
SEED_ADMIN_PASSWORDnoFor pnpm seed:admin. If unset, a password is generated.

cms.myeasyguide.com ​

VariableRequiredNotes
DATABASE_URLyesPostgreSQL connection string to cms_myeasyguide
JWT_SECRETyesSigns CMS auth tokens
ANTHROPIC_API_KEYyes for AIUsed for batch generation
CLAUDE_API_KEYnoFallback
CLAUDE_MODELnoModel for AI generation
FRONTEND_URLyesPublic frontend URL (e.g. https://myeasyguide.com) used for revalidation
REVALIDATION_SECRETyesHeader x-revalidation-secret sent to POST {FRONTEND_URL}/api/revalidate
NODE_ENVyesdevelopment or production

myeasyguide.com ​

VariableRequiredNotes
NEXT_PUBLIC_API_BASE_URLyesAPI base, e.g. https://api.myeasyguide.com/api/v1 (also used by rewrites)
NEXT_PUBLIC_POST_URLyesCMS base, e.g. https://cms.myeasyguide.com
NEXT_PUBLIC_SITE_URLyesSite origin for metadata and sitemaps
NEXT_PUBLIC_TURNSTILE_SITEKEYyes for protected formsPublic Turnstile key
NEXT_PUBLIC_TAWK_PROPERTY_IDnoChat widget
NEXT_PUBLIC_TAWK_WIDGET_IDnoChat widget
REVALIDATION_SECRETyes if CMS revalidatesMust match the CMS REVALIDATION_SECRET
NODE_ENVyesdevelopment or production

Setup notes ​

  1. Create .env files per app from their examples (or set them in your process manager). Never commit secrets.
  2. NEXT_PUBLIC_* values are baked at build time. Rebuild after changing them.
  3. The API validates required URLs in production and warns if optional email/Stripe pieces are missing. The CMS will fail auth/revalidation if JWT_SECRET or REVALIDATION_SECRET are wrong.
  4. In development, copy values from .env.example where present and fill in keys for the features you are testing.

Built with VitePress