You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/mastra-nextjs/README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,14 @@ To run the application locally for development, use the development compose file
26
26
docker compose -f compose.dev.yaml up
27
27
```
28
28
29
+
### `GOOGLE_GENERATIVE_AI_API_KEY`
30
+
31
+
When running locally with Docker Compose, you will need to set the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable to your GCP API key. You can get the API key from the [Google AI Studio](https://aistudio.google.com/).
32
+
33
+
### `LLM_MODEL`
34
+
35
+
When running locally with Docker Compose, you are limited to the models on this list: [Google models](https://mastra.ai/models/providers/google).
36
+
29
37
This will:
30
38
31
39
- Start PostgreSQL with volume persistence for local development
@@ -44,17 +52,13 @@ The password for your Postgres database. You need to set this before deploying f
44
52
45
53
_You can easily set this to a random string using `defang config set POSTGRES_PASSWORD --random`_
46
54
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)
55
+
### `GOOGLE_VERTEX_PROJECT` (Only for GCP deployments)
52
56
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/).
57
+
The GCP project ID where you want to deploy the application. You can find this in the [GCP Console](https://console.cloud.google.com/). This environment variable is used in this library: [google-vertex-ai](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex).
54
58
55
-
### `DEFANG_GCP_LOCATION` (Only for GCP deployments)
59
+
### `GOOGLE_VERTEX_LOCATION` (Only for GCP deployments)
56
60
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.
61
+
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.This environment variable is used in this library: [google-vertex-ai](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex).
0 commit comments