build: drop next-pwa and switch to default Next 16 build
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# ==========================================
|
||||
# 生产环境 Web 部署脚本(Next.js)
|
||||
# 原始 Dart: scripts/deploy/deploy_web.sh
|
||||
# ==========================================
|
||||
|
||||
# 设置环境配置文件(Next.js 命名:.env.production)
|
||||
ENV_FILE="env/.env.production"
|
||||
|
||||
# 加载服务器配置
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPT_DIR/config/production_server"
|
||||
|
||||
# 加载公共函数库
|
||||
source "$SCRIPT_DIR/_deploy_lib.sh"
|
||||
|
||||
# 主函数
|
||||
main() {
|
||||
setup_env "$ENV_FILE"
|
||||
build
|
||||
deploy
|
||||
|
||||
NEW_VERSION=$(bump_version)
|
||||
archive "$NEW_VERSION"
|
||||
purge_cdn_cache
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user