Skip to content

Commit 1ce140a

Browse files
committed
Update README
1 parent 938eac8 commit 1ce140a

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

samples/mastra-nextjs/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,28 @@ You can access mastra-nextjs at `http://localhost:3000` once the containers are
3838

3939
For this sample, you will need to provide the following [configuration](https://docs.defang.io/docs/concepts/configuration). Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
4040

41-
### `GOOGLE_GENERATIVE_AI_API_KEY`
42-
43-
Your Google Generative AI API key for accessing the Gemini Flash model. You can get this from the [Google AI Studio](https://aistudio.google.com/).
44-
4541
### `POSTGRES_PASSWORD`
4642

4743
The password for your Postgres database. You need to set this before deploying for the first time.
4844

4945
_You can easily set this to a random string using `defang config set POSTGRES_PASSWORD --random`_
5046

47+
### `DEFANG_PROVIDER`
48+
49+
Set to `gcp` when deploying to Google Cloud, or `aws` when deploying to AWS.
50+
51+
### `DEFANG_GCP_PROJECT` (Only for GCP deployments)
52+
53+
The GCP project ID where you want to deploy the application. You can find this in the [GCP Console](https://console.cloud.google.com/).
54+
55+
### `DEFANG_GCP_LOCATION` (Only for GCP deployments)
56+
57+
The GCP region where you want to deploy the application. This should typically be set to `us-central1`, but you can change it to your preferred location.
58+
59+
### `LLM_MODEL`
60+
61+
The large language model to use for the AI-powered chat. This can be set to models like `anthropic.claude-3-5-sonnet-20241022-v2:0` for AWS or `gemini-2.5-flash` for Google Cloud. Here is a list of supported models for [GCP](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex#model-capabilities) and [AWS](https://ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock#model-capabilities). For AWS make sure you [request access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) to the model in the AWS Bedrock console.
62+
5163
### `DB_URL`
5264

5365
The [PostgreSQL database connection string](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING). This will be automatically configured when using BYOC managed database services. It should look something like this: `postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]`.

samples/mastra-nextjs/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres
99
- DB_SSL=true #set this to false if deploying to defang playground
1010
- GITHUB_TOKEN #optional, remove this line if unused
11-
- DEFANG_PROVIDER=aws # change to gcp when deploying to Google Cloud
11+
- DEFANG_PROVIDER # use "gcp" when deploying to Google Cloud, "aws" when deploying to AWS
1212
- DEFANG_GCP_PROJECT # change to your GCP project when deploying to Google Cloud
1313
- DEFANG_GCP_LOCATION #should be us-central1 when deploying to Google Cloud, else change to your perferred location
1414
- LLM_MODEL=anthropic.claude-3-5-sonnet-20241022-v2:0 #gemini-2.5-flash for GCP, anthroipc.claude-3-5-sonnet-20241022-v2 for AWS

0 commit comments

Comments
 (0)