跳到主要內容

精選文章

把 npm 專案佈署到 GitHub.io

 



# 清除舊的建置 rm -rf .next out

# 重新安裝(可選) npm install

# 靜態匯出 npm run build


接著 將產出的 dist/ 目錄下的檔案, 複製到 github.io 專案下相關的目錄下, 上傳即可



留言

熱門文章