Skip to content

Commit

Permalink
Docs: Removed duplicated content (#2115)
Browse files Browse the repository at this point in the history
## What's the purpose of this pull request?

The doc "Part 2: Configuring external DNS for a custom domain" had
duplicated content, mixing the information for steps 3 and 4. This PR
deletes this content and fixes some typos.

Preview: [Part 2: Configuring external DNS for a custom
domain](https://faststore-site-git-docs-update-go-live-faststore.vercel.app/docs/go-live/2-configuring-external-dns)
  • Loading branch information
mariana-caetano authored Nov 17, 2023
1 parent 067056d commit 7b470d1
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions apps/site/pages/docs/go-live/2-configuring-external-dns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Besides making your FastStore website accessible via a custom domain, **VTEX Che

---

## Before you start
## Before you begin

- [Set up your VTEX account.](/docs/go-live/1-setting-up-vtex-account-for-faststore)
- Develop your FastStore project with **Next.js** by following the [Getting Started track](/docs/getting-started-overview).
Expand Down Expand Up @@ -65,27 +65,6 @@ Now, you must set up your VTEX account to use the DNS records created in the pre
![Host configuration](https://vtexhelp.vtexassets.com/assets/docs/src/hostsConfig___cad00ec89023cd77c34f77898cda1b3e.png)
7. Click the **Save** button.

### Step 3 - Associating your custom domain with your FastStore project

Back to your FastStore project, you must also configure your project to point to the right addresses and domains.

1. Open your FastStore project in any code editor of your preference.
2. Open the `faststore.config.js` file.
3. Update the `storeUrl`, `secureSubdomain`, `checkoutUrl`, `loginUrl`, and `accountUrl` properties as in the following:

- **`storeUrl`**: `https://{rootDomain}`
- **`secureSubdomain`**: `https://{subdomain}.{rootDomain}`
- **`checkoutUrl`**: `https://{subdomain}.{rootDomain}/checkout`
- **`loginUrl`**: `https://{subdomain}.{rootDomain}/api/io/login`
- **`accountUrl`**: `https://{subdomain}.{rootDomain}/api/io/account`

Take the following example of how this code block would look after configuring a store with the `www.mystore.com` domain and `secure` subdomain:
4. In the **Hosts** field, enter your main domain (e.g., `mystore.com`) in the list.
5. Click `Add`.
6. Add the `secure` subdomain (e.g., `secure.mystore.com`) to the list.
![Host configuration](https://vtexhelp.vtexassets.com/assets/docs/src/hostsConfig___cad00ec89023cd77c34f77898cda1b3e.png)
7. Click the `Save` button.

### Step 4 - Associating your custom domain with your FastStore project

Back to your FastStore project, you must also configure your project to point to the right addresses and domains.
Expand Down

1 comment on commit 7b470d1

@vercel
Copy link

@vercel vercel bot commented on 7b470d1 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.