只需要: npm install dotenv 然後在next.config.js裡加入一行: require("dotenv").config(); 無需很多過時的網絡教程說的要通過webpack把env導入config裡。
確定! 回上一頁