Files
my_site/.env.oss.example

28 lines
847 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制本文件为 `.env.oss.local` 后再填写真实值:
# cp .env.oss.example .env.oss.local
#
# 发布命令:
# ./scripts/deploy-front-oss.mjs
#
# 仅预览将要上传的文件:
# ./scripts/deploy-front-oss.mjs --skip-build --dry-run
# 阿里云 OSS Endpoint。
# 当前项目使用东京区域 OSS默认保持这个值即可。
YOYUZH_OSS_ENDPOINT="https://oss-ap-northeast-1.aliyuncs.com"
# 前端静态站点所在的 OSS Bucket 名称。
YOYUZH_OSS_BUCKET="yoyuzh-2026"
# 可选:上传到 Bucket 内的子目录。
# 为空表示直接上传到 Bucket 根目录。
YOYUZH_OSS_PREFIX=""
# 阿里云 AccessKey ID。
# 不要把真实值提交到 git。
YOYUZH_OSS_ACCESS_KEY_ID="YOUR_ACCESS_KEY_ID"
# 阿里云 AccessKey Secret。
# 不要把真实值提交到 git。
YOYUZH_OSS_ACCESS_KEY_SECRET="YOUR_ACCESS_KEY_SECRET"