The standalone output only includes modules Next.js traces for its own
routes. sqlite gets webpack-bundled so it's not in node_modules/ for
monitor.js to require(). Explicitly copy both packages from the builder.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Copy monitor.js into the standalone build stage (was missing entirely)
- Remove node-fetch require — Node 18 has global fetch built-in
- Switch from bind mount (./data) to named volume (dashboard-data) so
Docker manages permissions correctly for the nextjs user
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>