fixed 国际版部署edgeone较慢的原因

This commit is contained in:
Vaica committed 2026-02-08 18:48:45 +08:00
1 parent d1af066139
commit 6434705390
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -11,14 +11,18 @@ fi
# 2. Set default values if not provided
PROJECT_NAME=${1:-"hugo-blog"}
BUILD_DIR=${2:-"./public"}
AREA=${3:-"overseas"} # 默认为 overseas,因为用户切换到了国际站
echo "Deploying to EdgeOne Pages..."
echo "Project: $PROJECT_NAME"
echo "Directory: $BUILD_DIR"
echo "Area: $AREA"
# 3. Execute deployment command
# We use npx to run the edgeone CLI without global installation
npx edgeone pages deploy "$BUILD_DIR" -n "$PROJECT_NAME" -t "$EDGEONE_API_TOKEN"
# 注意:国际站必须加 --area overseas 参数
npx edgeone pages deploy "$BUILD_DIR" -n "$PROJECT_NAME" -t "$EDGEONE_API_TOKEN" --area "$AREA"
# 4. Check exit code
if [ $? -eq 0 ]; then