Skip to content

Commit

Permalink
Update deploying-on-netlify.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Dec 13, 2022
1 parent 99f4aea commit b256a9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/content/deployments/admin/deploying-on-netlify.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ Run the following command to add the environment variable:
netlify env:set MEDUSA_BACKEND_URL "<YOUR_SERVER_URL>"
```

Where `<YOUR_SERVER_URL>` is the URL of your Medusa server. Note that the usage of `GATSBY` in the environment variable name doesn't mean you can only use Gatsby frontend starters. For backwards compatibility, the following environment variable names are all valid and will all result with your Medusa Admin app communicating with the provided value as your Medusa server. Use any one of:
Where `<YOUR_SERVER_URL>` is the URL of your Medusa server.

1. `GATSBY_MEDUSA_BACKEND_URL`
2. `GATSBY_STORE_URL`
3. `MEDUSA_BACKEND_URL`
:::note

In previous versions of the admin, the environment variable name was `GATSBY_MEDUSA_BACKEND_URL` or `GATSBY_STORE_URL` instead. The admin remains backwards compatible, so if you've used this an older version you can keep the same environment variables. However, it's highly recommended you change it to `MEDUSA_BACKEND_URL`.

If you define multiple environment variables with the above names, precedence will be given to `MEDUSA_BACKEND_URL`, and the others will be ignored (even if `MEDUSA_BACKEND_URL` is an invalid URL).
:::

#### Check deployment status

Expand Down

0 comments on commit b256a9d

Please sign in to comment.