mirror of
https://github.com/Unleash/unleash.git
synced 2026-10-13 07:52:35 +00:00
240c6a77a1
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>
23 lines
438 B
TypeScript
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,
|
|
},
|
|
}));
|