forked from becomevocal/translations-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.sample
More file actions
50 lines (42 loc) · 2.02 KB
/
.env.sample
File metadata and controls
50 lines (42 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# BigCommerce API Credentials
# Get these from the Developer Portal: https://developer.bigcommerce.com/api-docs/apps/quick-start#register-a-draft-app
CLIENT_ID="your_client_id_here"
CLIENT_SECRET="your_client_secret_here"
# App URL Configuration
#
# For local development, test locally with ngrok:
# https://developer.bigcommerce.com/api-docs/apps/guide/development#testing-locally-with-ngrok
#
# [>] Run ngrok with a --url param to use the same subdomain every time:
# ngrok http --url=your-custom-subdomain.ngrok-free.app 3000
#
APP_ORIGIN="your_app_url_here"
AUTH_CALLBACK="$APP_ORIGIN/api/auth"
# Cookie and JWT Configuration
# Replace JWT_KEY with a secure random string of 32+ characters
COOKIE_NAME="translation-app-token"
JWT_KEY="your_secure_jwt_key_here"
# Database Configuration
# Choose one: postgres | sqlite | mysql | explicit_store_token
DB_TYPE="postgres"
DATABASE_URL="your_database_url_here"
# Blob bucket for storing translation files
BLOB_READ_WRITE_TOKEN=your_token_here
CRON_SECRET=your_secret_here
# Optional: Set explicit API Keys for a single store (useful during development or for a private app)
# Set the DB_TYPE to "explicit_store_token" and set the following values:
# HARDCODED_ACCESS_TOKEN="your_access_token"
# HARDCODED_STORE_HASH="your_store_hash"
# HARDCODED_LOCALE="locale_code (e.g. en-US)"
# Optional: Sentry Configuration
# SENTRY_ORG="your_sentry_org"
# SENTRY_PROJECT="your_sentry_project"
# NEXT_PUBLIC_SENTRY_DSN="your_sentry_dsn"
# SENTRY_AUTH_TOKEN="your_sentry_auth_token
# Optional: Translation Job Settings (these have defaults if not set)
# TRANSLATION_CONCURRENT_REQUESTS=3 # Maximum concurrent requests
# TRANSLATION_REQUESTS_PER_SECOND=5 # Maximum requests per second
# TRANSLATION_PRODUCTS_PER_PAGE=100 # Number of products per page in GraphQL queries
# TRANSLATION_IMPORT_BATCH_SIZE=3 # Batch size for import operations
# TRANSLATION_EXPORT_BATCH_SIZE=3 # Batch size for export operations
# TRANSLATION_PAGE_DELAY_MS=200 # Minimum delay between pagination requests