---
title: "Chris Weekly (@chrisweekly) | Hashnode"
description: "UI Architect & Web Performance Consultant. Read the latest articles by Chris Weekly on Hashnode."
url: "https://hashnode.com/@chrisweekly"
---

@chrisweekly

# Chris Weekly

@chrisweekly · Joined March 2022

UI Architect & Web Performance Consultant

## Comments

[Right on, Blaine Garrett. FTR I did exhaustive tests including NODE\_ENV=development next start, NODE\_ENV=production next dev, etc -- but I'm also currently stuck on v10.2.3. Maybe this has since changed in v11 or v12. IMHO Next.js made a rare misstep in being both opinionated and rigid about proper support for true 12-factor config that lives in the runtime deploy environment. It probably stems from their original desire to stay "close" to create-react-app, and ofc whatever most closely aligns with Vercel's preferred hosting model. (shrug) Slainte,Chris PS See also https://github.com/vercel/next.js/issues/12772#issuecomment-790228350 and https://github.com/vercel/next.js/discussions/25764](https://hashnode.com/posts/building-a-github-repo-template-part-5-nextjs-environment-variables/5f1204d3b8ea603b4afa1689/comment/6233b5c86647c71acb640ca2#reply-62390bca5df27d5ca212f672)

Reply · Article · Mar 21, 2022 · [Building a Github Repo Template Part 5: Next.js Environment Variables](https://hashnode.com/posts/building-a-github-repo-template-part-5-nextjs-environment-variables/5f1204d3b8ea603b4afa1689)

[Hi Blaine Garrett,Thanks for sharing a great writeup about a gnarly topic. I have a minor correction to share. You wrote: "Note: This hierarchy optionally goes further with .env.development and .env.production (corresponding to the value of NODE\_ENV)..." But they don't actually correspond to the value of NODE\_ENV. Next.JS bases its decision to read from .env.development vs .env.production on one thing only: whether you start the app with next dev or next start. That's all. NODE\_ENV's value is irrelevant to that bit of Next-specific logic. AFAICT you get the rest of the complicated picture right; hopefully my comment will inspire you to edit the post, or at least help ensure other readers aren't accidentally misled. Slainte, Chris](https://hashnode.com/posts/building-a-github-repo-template-part-5-nextjs-environment-variables/5f1204d3b8ea603b4afa1689/comment/6233b5c86647c71acb640ca2)

Comment · Article · Mar 17, 2022 · [Building a Github Repo Template Part 5: Next.js Environment Variables](https://hashnode.com/posts/building-a-github-repo-template-part-5-nextjs-environment-variables/5f1204d3b8ea603b4afa1689)
