應用程式自訂配置設定的執行階段值。
sails.config.custom;
在 action 或 helper 中
sails.config.custom.mailgunApiKey; // -> "key-testkeyb183848139913858e8abd9a3"
如需關於如何首先設定自訂配置的資訊,請參閱參考 > 配置 > sails.config.custom。
如果您發現我們遺漏或可以改進的地方,請點擊此連結並提交 pull request 到 sails repo。一旦我們合併,變更將在下次部署時反映在網站上。
為了在 sailsjs.com 上獲得更好的體驗,更新您的瀏覽器。
在 Youtube 上查看完整的 Sailsconf 2024 播放清單