From 0626b3e0450c1089dc93e091453653cb653462b5 Mon Sep 17 00:00:00 2001 From: luhc228 Date: Tue, 5 Dec 2023 10:22:12 +0800 Subject: [PATCH] docs: fix request base url env (#6679) --- website/docs/guide/advanced/request.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/guide/advanced/request.md b/website/docs/guide/advanced/request.md index 79a801bfe1..2d6dede8b5 100644 --- a/website/docs/guide/advanced/request.md +++ b/website/docs/guide/advanced/request.md @@ -509,11 +509,11 @@ export const requestConfig = defineRequestConfig({ ```shell title=".env.local" # The should not be committed. -BASEURL=http://localhost:9999/api +ICE_BASE_URL=http://localhost:9999/api ``` -```shell title=".env.prod" -BASEURL=https://example.com/api +```shell title=".env.production" +ICE_BASE_URL=https://example.com/api ``` 在 `src/app.tsx` 中配置 `request.baseURL`: @@ -522,6 +522,6 @@ BASEURL=https://example.com/api import { defineRequestConfig } from '@ice/plugin-request/types'; export const requestConfig = defineRequestConfig({ - baseURL: process.env.BASEURL, + baseURL: process.env.ICE_BASE_URL, }); ```