Skip to content

Commit 43bf67b

Browse files
committed
update document
1 parent 4b5a1ef commit 43bf67b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • DOCUMENTATION/content/documentation

DOCUMENTATION/content/documentation/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,3 +1729,13 @@ This error sometimes happens because your Laravel application isn't running on t
17291729
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
17301730

17311731
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-293296687), removing the line `RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories` from `nginx/Dockerfile` solves the problem.
1732+
1733+
## Custom composer repo packagist url and npm registry url
1734+
1735+
In China, the origin source of composer and npm is very slow. You can add `WORKSPACE_NPM_REGISTRY` and `WORKSPACE_COMPOSER_REPO_PACKAGIST` config in `.env` to use your custom source.
1736+
1737+
Example:
1738+
```bash
1739+
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
1740+
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com
1741+
```

0 commit comments

Comments
 (0)