-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (24 loc) · 1.28 KB
/
.env.example
File metadata and controls
31 lines (24 loc) · 1.28 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
# Copy this file to .env (for ampx) and .env.local (for Next.js dev) and fill in the values.
# All variables below are REQUIRED. Missing any will cause src/lib/awsConfig.ts to throw at startup.
# Do NOT commit the real .env/.env.local files with secrets.
# Get your API key from Google AI Studio: https://aistudio.google.com/app/apikey
GOOGLE_API_KEY=<your_google_ai_api_key>
# AWS Amplify App info
AWS_BRANCH=dev
AWS_APP_ID=xxxxxxx
# AWS Cognito (User Pool + Identity Pool)
NEXT_PUBLIC_COGNITO_REGION=us-east-1
NEXT_PUBLIC_COGNITO_USER_POOL_ID=us-east-1_xxxxx
NEXT_PUBLIC_COGNITO_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_COGNITO_IDENTITY_POOL_ID=us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# AWS AppSync
NEXT_PUBLIC_APPSYNC_ENDPOINT=https://xxx.appsync-api.us-east-1.amazonaws.com/graphql
# AI Flows Lambda Function URL (use http://localhost:4100 for local dev with `npm run ai:dev`)
NEXT_PUBLIC_AI_API_URL=http://localhost:4100
# Amazon S3
NEXT_PUBLIC_S3_BUCKET_NAME=leafwise
NEXT_PUBLIC_S3_REGION=us-east-1
# Notes:
# - Obtain values from AWS Console (Cognito, AppSync, S3) or via `npx ampx generate outputs`.
# - AppSync auth uses the raw Cognito ID token (JWT) in the Authorization header (no Bearer prefix).
# - The client sets a `cognito_id_token` cookie for server-side GraphQL requests.