Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官网无法访问 #65

Open
dethan3 opened this issue Oct 11, 2024 · 1 comment
Open

官网无法访问 #65

dethan3 opened this issue Oct 11, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dethan3
Copy link

dethan3 commented Oct 11, 2024

Date: 2024/10/11
Time: 15:24 (UTC+8)

This Serverless Function has timed out.

Your connection is working correctly.

Vercel is working correctly.

504: GATEWAY_TIMEOUT
Code: FUNCTION_INVOCATION_TIMEOUT
ID: sfo1::v5vz7-1728631418255-132eaa8b89d9
@TechQuery
Copy link
Member

TechQuery commented Oct 11, 2024

时有发生,但多数情况下是正常的。

因为 Vercel 线上页面采用 serverless 模式运行,免费版又限制云函数最长 10 秒运行时间。首页大量数据主要来自国内的飞书 API,云函数又不会像 Docker 单体应用那样长期驻留内存,无法缓存后端查询的数据,每次页面加载的全量查询遇到网络抖动就会产生超时。

基于 Docker 的国内服务器没有时限又可缓存数据,通常没有超时:https://idea2app.cn/

云函数页面缓存需要做一定改造,详见:#40idea2app/Next-Bootstrap-ts#27

@TechQuery TechQuery added the help wanted Extra attention is needed label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

2 participants