Skip to content

Commit

Permalink
docs: add hosts parameter description
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jul 21, 2021
1 parent 41e91d1 commit 3e22e65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default defineConfig({

如果网络受限的话,可以指定一个本地的 `mkcert` 文件来代替网络下载。

### hosts

自定义域名,默认使用 `localhost` + 本地 ip 列表。

## 显示插件的调试信息

设置环境变量 `DEBUG`=`vite:plugin:mkcert`
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Specify the download source of `mkcert`, domestic users can set it to `coding` t

If the network is restricted, you can specify a local `mkcert` file instead of downloading from the network.

### hosts

Custom hosts, default value is `localhost` + `local ip addrs`.

## Display the debugging information of the plug-in

Set the environment variable `DEBUG`=`vite:plugin:mkcert`
Expand All @@ -70,7 +74,7 @@ Set the environment variable `DEBUG`=`vite:plugin:mkcert`

Use [mkcert](https://github.com/FiloSottile/mkcert) to install the local `CA` certificate and generate it for [server.https](https://vitejs.bootcss.com/config/#server-https) Server certificate.

## friendly reminder
## Friendly reminder

1. `mkcert` save directory: [PLUGIN_DATA_DIR](packages/plugin/src/lib/constant.ts)
2. Uninstall the `CA` certificate: `mkcert uninstall`
Expand Down

0 comments on commit 3e22e65

Please sign in to comment.