Starting or Building Keystone with NODE_ENV set production fails.
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- build-system
Research direction
Start with the production build failure using the dotenv import in keysone.ts, comparing it with builds under development, testing, staging, and an undefined NODE_ENV. Reproduce with Node 16, 18, or 20 and verify that a newly scaffolded Keystone app builds successfully when NODE_ENV=production.
Written by the indexing model from the issue text.
Description
Please add steps to reproduce the problem
- Scaffold a new Keystonejs app.
- Install dotenv or a similar tool
- inside
keysone.tsfile, import dotenvimport 'dotenv/config'; - set
NODE_ENV=productionin .env file - Try building the project.
Please describe what you expected to happen
It should build successfully. It builds in development, testing, and staging. It builds even when NODE_ENV is undefined. But only fails in production mode.
Please add any screenshots if possible
Please add contextual information such as your node version (node -v), or the web browser you used
Tried on NODE v16, v18, and v20 (using nvm).
- Dominant language
- TypeScript
- Stars
- 10k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 38
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keystonejs/keystone
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
keystonejs/keystone#10143 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
keystonejs/keystone#10141 ·
Maintainers usually reply within 1 day
-
[bug] List view search field becomes disabled when search returns no results, interrupting IME inputPossibly taken @ltxhhz claimed this 17 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
keystonejs/keystone#10097 ·
Maintainers usually reply within 1 day
-
Document Fields Demo page of docs refers to form that doesn't existMay be free again @Mthize claimed this 189 days ago, and no pull request is open. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
keystonejs/keystone#9766 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
keystonejs/keystone#10142 ·
Maintainers usually reply within 1 day
All issues in keystonejs/keystone
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
better-auth/better-auth#13064 · 1 reaction ·
Maintainers usually reply within 1 day
-
Tell Sloppy how each kind of element plays on the timelinePossibly taken A pull request linked to this issue is open or already merged. Opengood first issue priority: medium size: XS task
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bug P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug p1 subagents
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
vercel/ai#25788 · 4 comments ·
Maintainers usually reply within 1 day