# 前言 這邊我是參考這篇 [一文教会你如何使用 Vercel 部署你的 NestJS 应用](https://www.levenx.com/article/how-to-deploy-your-nestjs-application-using-vercel#heading-4) 教學文章跟著操作的紀錄 # Nestjs 專案增加 vercel 設定文件 在跟目錄下新增 vercel.json 文件 ``` { "version": 2, "builds": [ { "src": "src/main.ts", "use": "@vercel/node" } ], "routes": [ { "src": "/(.*)", "dest": "src/main.ts", "methods": [ "GET", "POST", "PUT", "DELETE", "PATCH" ] } ] } ``` # Nestjs 專案上傳到github  # 授權给 vercel 點選右上角頭像展開選單  選擇setting  選擇 config  # Vercel 平台新增專案 這邊找到剛剛建立的repo 點選import  修改執行命令,並且執行 deploy 部屬完成 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up