Skip to content

Commit

Permalink
Adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgauvin committed Mar 20, 2024
1 parent 7b62f42 commit 704ca8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ To deploy to Azure Static Web Apps, create a Static Web Apps resource from the A

Set the following environment variables in the Static Web Apps resource from the Azure Portal:

"COSMOSDB_KEY": "<ENTER COSMOS DB KEY>",
"COSMOSDB_ENDPOINT": "<ENTER COSMOS DB ENDPOINT>",
"NUXT_COSMOSDB_KEY": "<ENTER COSMOS DB KEY>",
"NUXT_COSMOSDB_ENDPOINT": "<ENTER COSMOS DB ENDPOINT>",

These will overwrite the runtime config we've set in the `nuxt.config.js` file. Nuxt automatically detects environment variables with the 'NUXT_' prefix and overwrites the runtime config NUXT_COSMOSDB_KEY is set to the runtime config cosmosdbKey, and NUXT_COSMOSDB_ENDPOINT is set to the runtime config cosmosdbEndpoint (by convention).

0 comments on commit 704ca8d

Please sign in to comment.