2 Commits

Author SHA1 Message Date
Shivam Patel
9cf5f9620c Fix SQLite init: lazy loading, writability check, and host permissions
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 30s
DB initialization was eager at module import time, crashing the entire
analytics route when /server_storage wasn't writable. Now deferred to
first logVisit() call with graceful fallback. Also fix deploy workflow
to chown via a bind-mounted container so permissions apply on the host.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:17:44 -05:00
Shivam Patel
4a01928fe7 Add SQLite visitor IP logging to /server_storage
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 1m9s
Log visitor IPs and paths to a local SQLite database via the existing
analytics API route, persisted at /server_storage/visitors.db in Docker
(falls back to ./visitors.db in dev).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:04:45 -05:00