Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 731 Bytes

missing-env-value.md

File metadata and controls

28 lines (20 loc) · 731 Bytes

Missing Env Value

Why This Error Occurred

One of your pages' config requested an env value that wasn't populated.

// pages/index.js
export const config = {
  // this value isn't provided in `.env`
  env: ['MISSING_KEY'],
}
// .env (notice no `MISSING_KEY` provided here)
NOTION_KEY='...'

Possible Ways to Fix It

Either remove the requested env value from the page's config, populate it in your .env file, or manually populate it in your environment before running next dev or next build.

Useful Links