You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
482 B
JavaScript
7 lines
482 B
JavaScript
// Dev launcher: enables the demo seed (M10) then runs the built server. Production must NOT use
|
|
// this — it runs `node dist/server.cjs` directly with SIMS_SEED_DEMO unset, so a real empty DB is
|
|
// never auto-seeded with the known-credential demo owner. Pure Node so it works on Windows + POSIX
|
|
// without a cross-env dependency. An explicit SIMS_SEED_DEMO (e.g. '0') is respected.
|
|
process.env.SIMS_SEED_DEMO = process.env.SIMS_SEED_DEMO ?? '1'
|
|
await import('./dist/server.cjs')
|