OpenCut-app / OpenCut-app/OpenCut

[BUG] Error: DATABASE_URL is not set

Open
#231 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
89.8k
Forks
8.9k
PR merge metrics
No merged PRs in 30d

Description

Platform

Windows 11 Pro x64

Browser

Firefox 140.0.4

Current Behavior
Image D:\OpenCut\apps\web>bun run dev $ next dev ▲ Next.js 15.3.4 - Local: http://localhost:3000 - Network: http://26.2.13.68:3000

✓ Starting...
✓ Ready in 8s
○ Compiling /middleware ...
✓ Compiled /middleware in 658ms (108 modules)
○ Compiling / ...
✓ Compiled / in 21.3s (2097 modules)
⨯ Error: DATABASE_URL is not set
at getDb (webpack-internal:///(rsc)/../../packages/db/src/index.ts:33:15)
at (webpack-internal:///(rsc)/../../packages/db/src/index.ts:44:17)
at eval (null)
at (rsc)/../../packages/db/src/index.ts (D:\OpenCut\apps\web.next\server\app\page.js:63:1)
at webpack_require (D:\OpenCut\apps\web.next\server\webpack-runtime.js:33:33)
at (webpack-internal:///(rsc)/./src/lib/waitlist.ts:5:88)
at eval (null)
at (rsc)/./src/lib/waitlist.ts (D:\OpenCut\apps\web.next\server\app\page.js:314:1)
at webpack_require (D:\OpenCut\apps\web.next\server\webpack-runtime.js:33:33)
at (webpack-internal:///(rsc)/./src/app/page.tsx:11:90)
at eval (null)
at (rsc)/./src/app/page.tsx (D:\OpenCut\apps\web.next\server\app\page.js:118:1)
at webpack_require (D:\OpenCut\apps\web.next\server\webpack-runtime.js:33:33)
at processTicksAndRejections (null) {
page: '/'
}
○ Compiling /_error ...
✓ Compiled /_error in 4.7s (2383 modules)
GET / 500 in 29419ms

Expected Behavior

Shows OpenCut

Recurrence Probability

Always

Steps To Reproduce
  1. Clone opencut
  2. cd apps/web
  3. bun install
  4. bun run dev
Anything else?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading packages/db/src/index.ts around getDb and then trace its use through apps/web/src/lib/waitlist.ts and apps/web/src/app/page.tsx. Reproduce the issue with bun run dev from apps/web on Windows. Done means the root page loads and shows OpenCut instead of returning a 500 error for the missing DATABASE_URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, nextjs, typescript
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.