Commit Graph

51 Commits

Author SHA1 Message Date
jason
b2df27cfc5 multi-file update 2026-03-13 11:13:45 -05:00
jason
5e3ca19c83 stuff 2026-03-13 09:29:39 -05:00
b81a568592 Merge pull request 'fix: resolve "Unknown User" in admin panel' (#13) from claude/quirky-golick into master
Reviewed-on: #13
2026-03-13 07:30:43 -05:00
04ebc91e9f fix: include user relation in admin reports query to resolve Unknown User display
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 07:29:55 -05:00
8eaf239c5d Update README.md 2026-03-13 07:21:08 -05:00
2077ab3275 Merge pull request 'fix: read Google access_token from Account table, not getToken()' (#12) from claude/reverent-proskuriakova into master
Reviewed-on: #12
2026-03-13 00:57:20 -05:00
19b1f26254 fix: read Google access_token from Account table, not getToken()
With strategy:"database" there is no JWT cookie, so getToken() always
returns null. The Google access_token is stored in the Account table by
the PrismaAdapter. Query it directly via prisma.account.findFirst()
instead of the JWT helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:56:33 -05:00
bc9a13bfe4 Merge pull request 'fix: copy prisma.config.ts into runner so db push can find datasource URL' (#11) from claude/reverent-proskuriakova into master
Reviewed-on: #11
2026-03-13 00:45:12 -05:00
cfeee5dc2a fix: copy prisma.config.ts into runner so db push can find datasource URL
Without prisma.config.ts in the runner stage, prisma db push has no
datasource URL (schema.prisma no longer carries url in Prisma 7) and
silently skips creating the database. Also add set -e to the entrypoint
so any db push failure is visible in logs and stops the container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:44:41 -05:00
a091420573 Merge pull request 'fix: create /app/data after COPY steps to prevent permission clobber' (#10) from claude/reverent-proskuriakova into master
Reviewed-on: #10
2026-03-13 00:39:26 -05:00
b1fa70eba4 fix: create /app/data after COPY steps to prevent permission clobber
The mkdir was running before the standalone COPY, which could overwrite
/app/data contents or permissions. Move it to after all COPY statements
and use chmod 700 so only nextjs owns and can write the SQLite data dir.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:38:50 -05:00
ca414bb903 Merge pull request 'fix: use npm install in Docker so Alpine musl native bindings resolve' (#9) from claude/reverent-proskuriakova into master
Reviewed-on: #9
2026-03-13 00:33:05 -05:00
716b37c6f2 fix: use npm install in Docker so Alpine musl native bindings resolve
npm ci with a Windows-generated lockfile skips @libsql/linux-x64-musl
(optional native dep). Switching to npm install lets npm resolve the
correct platform-specific binary for the Alpine container. Also copy
node_modules into the runner stage so prisma db push and the libsql
native module are available at runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:32:24 -05:00
8c7142ca78 Merge pull request 'fix: pass config object directly to PrismaLibSql, drop @libsql/client' (#8) from claude/reverent-proskuriakova into master
Reviewed-on: #8
2026-03-13 00:28:23 -05:00
8b18566761 fix: pass config object directly to PrismaLibSql, drop @libsql/client
PrismaLibSql constructor takes a Config object (with url), not a
pre-created Client instance. Remove the unnecessary createClient call
and the @libsql/client direct dependency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:28:06 -05:00
1c12b9a70d Merge pull request 'fix: remove apk upgrade from Dockerfile base stage' (#7) from claude/reverent-proskuriakova into master
Reviewed-on: #7
2026-03-13 00:25:45 -05:00
ea5b4a955d fix: remove apk upgrade from Dockerfile base stage
apk upgrade hangs on slow/unreliable Alpine mirrors and is not needed
for a build. node:20-alpine is sufficiently up to date.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:24:52 -05:00
d2d1eb17b5 Merge pull request 'fix: exclude prisma.config.ts from TS compilation, use datasource.url' (#6) from claude/reverent-proskuriakova into master
Reviewed-on: #6
2026-03-13 00:17:52 -05:00
3e536a0a0e fix: exclude prisma.config.ts from TS compilation, use datasource.url
prisma.config.ts is a Prisma CLI config file, not part of the Next.js
app — exclude it from tsconfig to prevent type errors. Also revert the
migrate.adapter block (not a valid PrismaConfig key in 7.5) back to
datasource.url which is the correct CLI config for db push.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:17:17 -05:00
1b0982d523 Merge pull request 'fix: correct PrismaLibSQL -> PrismaLibSql export name' (#5) from claude/reverent-proskuriakova into master
Reviewed-on: #5
2026-03-13 00:14:35 -05:00
e7560bedff fix: correct PrismaLibSQL -> PrismaLibSql export name
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:14:12 -05:00
109a30699a Merge pull request 'fix: exclude libsql packages from webpack bundling' (#4) from claude/reverent-proskuriakova into master
Reviewed-on: #4
2026-03-13 00:01:42 -05:00
aeee0fb598 fix: exclude libsql packages from webpack bundling
@libsql/client and libsql contain native bindings and non-JS assets
(README.md, LICENSE) that webpack cannot parse. Mark them as server
external packages so Next.js requires them at runtime instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:01:06 -05:00
e51311eb0c Merge pull request 'chore: update package-lock.json for libsql adapter dependencies' (#3) from claude/reverent-proskuriakova into master
Reviewed-on: #3
2026-03-12 23:55:44 -05:00
a692b99d31 chore: update package-lock.json for libsql adapter dependencies
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 23:53:33 -05:00
fbbd67fbc6 Merge pull request 'fix: migrate to Prisma 7 driver adapter (libsql) for SQLite' (#2) from claude/reverent-proskuriakova into master
Reviewed-on: #2
2026-03-12 23:51:13 -05:00
fcc04915c2 fix: migrate to Prisma 7 driver adapter (libsql) for SQLite
Prisma 7 removed support for `url` in schema.prisma datasources and the
`engineType = "library"` native binary engine. All connections now go
through a driver adapter.

- Remove engineType and url from schema.prisma (no longer supported)
- Configure prisma.config.ts with migrate.adapter using @libsql/client
- Instantiate PrismaClient with PrismaLibSQL adapter in src/lib/prisma.ts
- Add @libsql/client and @prisma/adapter-libsql dependencies
- Remove PRISMA_CLIENT_ENGINE_TYPE from Dockerfile (obsolete)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 23:49:58 -05:00
bfb7cd98c8 Merge pull request 'fix: restore DATABASE_URL in schema.prisma for Prisma 7 runtime client' (#1) from claude/reverent-proskuriakova into master
Reviewed-on: #1
2026-03-12 23:46:49 -05:00
042c45d9dd fix: restore DATABASE_URL in schema.prisma for Prisma 7 runtime client
Prisma 7's prisma.config.ts only configures the CLI, not the runtime
PrismaClient. Without url in the datasource block, the generated client
defaults to engineType "client" (WASM) which requires an adapter,
causing next-auth adapter errors on OAuth callback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 23:46:01 -05:00
3b743d81d4 docker 2026-03-12 23:34:19 -05:00
e6f4f6c092 auth drive 2026-03-12 23:29:00 -05:00
8b4a18e29d auth fix 2026-03-12 23:20:49 -05:00
f5a1361fd3 ignore 2026-03-12 23:09:48 -05:00
0e50256844 login 2026-03-12 23:05:28 -05:00
2827d00941 env2 2026-03-12 22:59:53 -05:00
f0a2f081a7 env 2026-03-12 22:58:27 -05:00
286ac00361 database 2026-03-12 22:53:56 -05:00
cbbaf747bf maybe? 2026-03-12 20:30:36 -05:00
13f53badc3 again? 2026-03-12 20:27:11 -05:00
e007d54fb3 claude ftw 2026-03-12 20:13:55 -05:00
0801592eb9 more proxy 2026-03-12 20:11:08 -05:00
f5e3a1e870 no turbo again 2026-03-12 20:02:25 -05:00
1d7c564c4a no turbo 2026-03-12 19:59:59 -05:00
7886d60827 more 2026-03-12 19:49:59 -05:00
ebc0c61da4 routes fix 2026-03-12 19:47:28 -05:00
6b0190de81 more fixes 2026-03-12 19:18:01 -05:00
5de0f52af7 prisma fixes 2026-03-12 19:15:56 -05:00
7d7c34bcb1 docker fixes 2026-03-12 19:12:44 -05:00
ce5eb2343d docker update 2026-03-12 19:00:31 -05:00
jason
2743b6ddf1 prisma fix 2026-03-12 17:30:36 -05:00