ZapStack

Configuration

Custom by edit the configration

There are two main places to edit the app configuration: /configs folder and in .env file.

Configuration folder /configs

Most of your site configs should be here.

  • /configs/auth for authentication.

  • /configs/menus for all menu items of the app.

  • /configs/pricing for Pricing block.

  • /configs/landing for content of other landing blocks.

  • /configs/mics for other configs.

Let open /configs folder and check it out.

Environment variables .env

Use mostly for secret keys or dynamic variables.

You can access these environment variables in code like process.env.ADMIN_EMAILS

Accessing environment variables in .env file using process.env only works for Server components

Start by duplicating from .env.sample into .env and filling them out:

# Core
NODE_ENV=development
BASE_URL=http://localhost:4000
AUTH_SECRET=a_random_string
ADMIN_EMAILS=
 
# Database
DATABASE_URL=
DIRECT_URL=
 
# Auth
AUTH_RESEND_KEY=
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
 
# Stripe
STRIPE_SECRET_KEY=
STRIPE_SECRET_KEY_LIVE=
STRIPE_WEBHOOK_SECRET=
 
# Email
EMAIL_FROM=
 
# Google analytics
GA_ID=
 
# Crisp chat
CRISP_WEBSITE_ID=
 
# Github invitation module
GITHUB_AUTH_TOKEN=
GITHUB_INVITATION_REPO_PATH=

.env is already included in .gitignore file, that should not commit/push into git repo

On this page