docs: fix bad anchor link syntax (#6683)

This commit is contained in:
Joshua Chen 2022-02-15 11:24:50 +08:00 committed by GitHub
parent 344e199ee8
commit 94532dfd26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ Use [slorber/trailing-slash-guide](https://github.com/slorber/trailing-slash-gui
:::
## Using environment variables {using-environment-variables}
## Using environment variables {#using-environment-variables}
Putting potentially sensitive information in the environment is common practice. However, in a typical Docusaurus website, the `docusaurus.config.js` file is the only interface to the Node.js environment (see [our architecture overview](advanced/architecture.md)), while everything else—MDX pages, React components... are client side and do not have direct access to the `process` global. In this case, you can consider using [`customFields`](api/docusaurus.config.js.md#customfields) to pass environment variables to the client side.
@ -85,7 +85,7 @@ export default function Home() {
}
```
## Choosing a hosting provider {choosing-a-hosting-provider}
## Choosing a hosting provider {#choosing-a-hosting-provider}
There are a few common hosting options: