如果要讓Node.js 檔案也可以讀.env檔案可以使用以下模組. 1. yarn add dotenv. Copied! 然後. 1. require('dotenv').load();. 2. console.log(process.env). Copied!
確定! 回上一頁