·env-validation
</>

env-validation

andrelandgraf/fullstackrecipes

在服務器啟動時和構建之前驗證環境變量。通過清晰的錯誤消息儘早發現丟失或無效的變量。

38安裝·0熱度·@andrelandgraf

安裝

$npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill env-validation

SKILL.md

Validate environment variables on server start and before builds. Catch missing or invalid variables early with clear error messages.

Some environment variables are read internally by packages rather than passed as arguments. To catch missing variables early instead of at runtime, import your configs in instrumentation.ts:

The side-effect imports trigger configSchema validation immediately when the server starts. If any required environment variable is missing, the server fails to start with a clear error rather than failing later when the code path is executed.

在服務器啟動時和構建之前驗證環境變量。通過清晰的錯誤消息儘早發現丟失或無效的變量。 來源:andrelandgraf/fullstackrecipes。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill env-validation
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 env-validation?

在服務器啟動時和構建之前驗證環境變量。通過清晰的錯誤消息儘早發現丟失或無效的變量。 來源:andrelandgraf/fullstackrecipes。

如何安裝 env-validation?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill env-validation 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/andrelandgraf/fullstackrecipes