All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 5m0s
资源已上传到 https://cyberstar.tos-cn-shanghai.volces.com/cyber-star/ 代码改动: - 新增 src/lib/tos.ts 提供 tosUrl(path) 工具,读 NEXT_PUBLIC_TOS_DOMAIN - mock-data.ts: portrait/gallery 切到 .webp, videoUrl 走 TOS, 全部通过 tosUrl() - page.tsx Hero PV 走 tosUrl("videos/hero-pv.mp4") - next.config.ts 把火山 TOS 域名(沪/京)+ 火山 CDN 加进 images.remotePatterns 白名单 - .env.example 更新 NEXT_PUBLIC_TOS_DOMAIN 示例为实际桶域名 体积影响 (与之前打包给运维的 cyber-star-assets.tar.gz 一致): - 立绘 5MB png → 100-300KB webp (-95%) - 单人 solo 5-10MB mp4 → 1-3MB (-70%) - Hero PV 45MB → 12MB (-70%) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
615 B
TypeScript
19 lines
615 B
TypeScript
import type { NextConfig } from "next";
|
||
|
||
const nextConfig: NextConfig = {
|
||
// 关闭左下角的开发指示器(dev overlay 角标)
|
||
devIndicators: false,
|
||
// 容器化部署:产出精简的 standalone 包(node server.js 启动)
|
||
output: "standalone",
|
||
// next/image 远程域名白名单:火山 TOS 桶 + 后续 CDN 域名
|
||
images: {
|
||
remotePatterns: [
|
||
{ protocol: "https", hostname: "*.tos-cn-shanghai.volces.com" },
|
||
{ protocol: "https", hostname: "*.tos-cn-beijing.volces.com" },
|
||
{ protocol: "https", hostname: "*.volccdn.com" },
|
||
],
|
||
},
|
||
};
|
||
|
||
export default nextConfig;
|