Commit Graph

7 Commits

Author SHA1 Message Date
Alejandro Martinez
500653301e fix: force pnpm rebuild better-sqlite3 for native binding
pnpm install doesn't compile native bindings in Alpine. Explicit
rebuild ensures the .node file is generated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 15:07:50 +02:00
Alejandro Martinez
487f60e275 fix: use busybox-compatible find (no -ls flag)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 15:04:08 +02:00
Alejandro Martinez
00aa075d47 fix: keep python3 runtime, verify native binding path, selective cleanup
apk del python3 cascades to remove sqlite-libs. Only remove make/g++.
Add debug step to verify better_sqlite3.node was built.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:50:09 +02:00
Alejandro Martinez
6c8ad5c4f9 fix: use single-stage Docker build for native bindings
Multi-stage builds break better-sqlite3 because the native .node
binding and its bindings/file-uri-to-path deps need to be in
node_modules at runtime. Single stage keeps everything in place.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:37:39 +02:00
Alejandro Martinez
c8afee2b6c fix: find better-sqlite3 native binding in pnpm store
pnpm uses .pnpm symlink store, so the binding isn't at the
standard node_modules path. Use find to locate the .node file
and copy it to where Nitro expects it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:27:02 +02:00
Alejandro Martinez
0728211857 fix: copy better-sqlite3 native bindings to Docker runtime stage
The .node binary wasn't being copied to .output, causing 'Could not locate
the bindings file' error at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:23:07 +02:00
Alejandro Martinez
e7de636cf2 feat: initial brainstorming app — Nuxt 3 + SQLite + admin auth
Nuxt 3 app with:
- SQLite (better-sqlite3) for persistence
- Anonymous idea submission and voting
- Admin auth with session cookies
- AI analysis via Gemini API
- Nuxt UI components + Tailwind

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:15:45 +02:00