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='...'
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
.