Skip to content

Commit

Permalink
Minor updates to the Vue example (#714)
Browse files Browse the repository at this point in the history
* Update how-to-create-a-vuejs-app-with-serverless.md

Use VITE env var

* Update how-to-create-a-vuejs-app-with-serverless.md

Lambda function is not processed by Vite, so no `import.meta.env` available
  • Loading branch information
rowanu committed May 9, 2023
1 parent 2fa9c8c commit 1d97cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _examples/how-to-create-a-vuejs-app-with-serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const site = new StaticSite(stack, "VueJSSite", {
errorPage: "redirect_to_index_page",
environment: {
// Pass in the API endpoint to our app
VUE_APP_API_URL: api.url,
VITE_APP_API_URL: api.url,
},
});

Expand Down Expand Up @@ -400,7 +400,7 @@ Let's update our table with the clicks.

```ts
const putParams = {
TableName: import.meta.env.tableName,
TableName: Table.Counter.tableName,
Key: {
counter: "clicks",
},
Expand Down

0 comments on commit 1d97cbc

Please sign in to comment.