Skip to content

Commit

Permalink
chore: update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghanzhilian committed Mar 25, 2024
1 parent 635f34e commit e2190a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ functionality and responsibilities, making it easier for team members to underst
yarn
```
3. Modify the `.env` file in the project root directory to define the required environment variables. This step is crucial (for image upload to OSS):
3. Please create a new `.env` file from `.env.example` file in the project root directory to define the required environment variables. This step is crucial (for image upload to OSS):
```
NEXT_PUBLIC_ACCESS_TOKEN_SECRET=<your token secret>
NEXT_PUBLIC_ALI_REGION=<your ali endpoint>
NEXT_PUBLIC_ALI_BUCKET_NAME=<your ali bucket name>
NEXT_PUBLIC_ALI_ACCESS_KEY=<your ali access key>
Expand Down
3 changes: 2 additions & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@
```
yarn
```
3. 修改.env的文件,在项目根目录,定义所需的环境变量。这个步骤是重要的(图片上传OSS):
3. 查看`.env.example`内容,创建新的`.env`的文件,在项目根目录,定义所需的环境变量。这个步骤是重要的(图片上传OSS):

```
NEXT_PUBLIC_ACCESS_TOKEN_SECRET=<your token secret>
NEXT_PUBLIC_ALI_REGION=<your ali endpoint>
NEXT_PUBLIC_ALI_BUCKET_NAME=<your ali bucket name>
NEXT_PUBLIC_ALI_ACCESS_KEY=<your ali access key>
Expand Down

0 comments on commit e2190a5

Please sign in to comment.