适合构建 API 服务、AI 应用后端。
项目结构要求:
my-api/ ├── main.py # 入口文件,包含 app = FastAPI() ├── requirements.txt # Python 依赖 └── ...
示例 main.py:
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"message": "Hello World"}
@app.get("/health")
def health():
return {"status": "ok"}适合全栈 React 应用、SSR/SSG 网站。
项目结构要求:
my-app/ ├── package.json # 需要 build 和 start 脚本 ├── next.config.js # Next.js 配置 ├── src/ # 或 app/ pages/ └── ...
package.json 脚本:
{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
}
}支持公开的 Git 仓库:
https://github.com/user/repohttps://gitlab.com/user/repohttps://gitee.com/user/repo默认拉取 main 分支。
直接上传代码压缩包:
部署超时时间为 10 分钟。如果构建时间过长,请检查:
在项目详情页点击「重新部署」可以拉取最新代码并重新构建。 适用于代码更新后需要发布新版本的场景。