feat: 添加容器时区设置
ocs-nuxt / deploy (push) Successful in 1m49s

This commit is contained in:
2026-05-24 00:33:44 +08:00
parent db77362de2
commit 059cad8e27
+2
View File
@@ -21,6 +21,8 @@ RUN pnpm build
# Nuxt server 默认监听 3000,可通过 PORT 环境变量覆盖
ENV PORT=3000
# 容器时区设为 CST,确保 date.getHours() 等本地时间方法返回正确的北京时间
ENV TZ=Asia/Shanghai
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]