Next.js app with a browser-side buttplug/buttplug-wasm control layer (server never touches real-time device commands), SQLite storage via Drizzle, single-secret auth, recordings/replay with device remapping, a usage stats dashboard, Docker deployment, and Gitea CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
9 lines
298 B
TypeScript
9 lines
298 B
TypeScript
export async function register() {
|
|
// Only the Node.js server runtime touches better-sqlite3; the Edge
|
|
// middleware runtime must never import this module.
|
|
if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
const { runMigrations } = await import("@/lib/db/migrate");
|
|
runMigrations();
|
|
}
|
|
}
|