- Protocol 1 (docs/hub-protocol.md): public key, register, signed heartbeats - Ed25519 licence tokens (30-day validity, status, expiry, grace, limits) - Dashboard: installs, install detail, customers and licences, alerts, settings and audit log; two-factor login required - Alert checks every 5 minutes, emailed once; heartbeat roll-up after 30 days - Unit tests for encryption, tokens, signatures, TOTP and alert rules Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mt6TCv85T9VKRq3cV7rXq
16 lines
493 B
JavaScript
16 lines
493 B
JavaScript
// Prisma CLI config (migrate, generate). Prisma 7 no longer reads the datasource URL
|
|
// from schema.prisma or auto-loads .env, so both happen here.
|
|
require('dotenv/config');
|
|
const { defineConfig } = require('prisma/config');
|
|
|
|
module.exports = defineConfig({
|
|
schema: 'prisma/schema.prisma',
|
|
migrations: {
|
|
path: 'prisma/migrations',
|
|
},
|
|
datasource: {
|
|
// process.env rather than env() so `prisma generate` works without a DATABASE_URL.
|
|
url: process.env.DATABASE_URL,
|
|
},
|
|
});
|