Files
unleash/src/server-dev.ts
T
Christopher Kolstad 240c6a77a1 Feat/options need types (#794)
feat: options are now typed

- This makes it easier to know what to send to unleash.start / unleash.create
- Using a Partial to instantiate the config, then melding it with defaults to get a config object with all fields set either to their defaults or to whatever is passed in.


Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-04-22 10:07:10 +02:00

23 lines
438 B
TypeScript

'use strict';
import unleash from './lib/server-impl';
import createConfig from "./lib/create-config";
unleash.start(createConfig({
db: {
user: 'unleash_user',
password: 'passord',
host: 'localhost',
port: 5432,
database: 'unleash',
ssl: false,
},
server: {
enableRequestLogger: true,
},
enableOAS: true,
versionCheck: {
enable: false,
},
}));