Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { declareRuntimeEnv } from 'resolve-scripts'
const testFunctionalConfig = {
target: 'local',
port: declareRuntimeEnv('PORT', '3000'),
mode: 'development',
readModelConnectors: {
default: {
module: 'resolve-readmodel-lite',
options: {
databaseFile: 'data/read-models-test-functional.db'
}
}
},
storageAdapter: {
module: 'resolve-storage-lite',
options: {
databaseFile: 'data/event-store-test-functional.db'
}
},
eventBroker: {
const { declareRuntimeEnv } = require('resolve-scripts')
const prodConfig = {
target: 'local',
port: declareRuntimeEnv('PORT', '3000'),
mode: 'production',
readModelConnectors: {
default: {
module: 'resolve-readmodel-lite',
options: {
databaseFile: 'data/read-models.db'
}
}
},
eventBroker: {
databaseFile: 'data/local-bus-broker.db'
}
}
module.exports = prodConfig
export default {
target: 'cloud',
mode: 'production',
staticPath: declareRuntimeEnv('RESOLVE_CLOUD_STATIC_URL'),
subscribeAdapter: {
module: 'resolve-subscribe-mqtt',
options: {}
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
},
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
}
}
import { declareRuntimeEnv } from 'resolve-scripts'
const devConfig = {
target: 'local',
port: declareRuntimeEnv('PORT', '3000'),
mode: 'development',
rootPath: '',
staticPath: 'static',
staticDir: 'static',
distDir: 'dist',
storageAdapter: {
module: 'resolve-storage-lite',
options: {
databaseFile: 'data/event-store.db'
}
},
subscribeAdapter: {
module: 'resolve-subscribe-socket.io',
options: {}
},
jwtCookie: {
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
},
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
}
}
import { declareRuntimeEnv } from 'resolve-scripts'
export default {
target: 'cloud',
mode: 'production',
staticPath: declareRuntimeEnv('RESOLVE_CLOUD_STATIC_URL'),
subscribeAdapter: {
module: 'resolve-subscribe-mqtt',
options: {}
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
} /*,
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
import { declareRuntimeEnv } from 'resolve-scripts'
export default {
target: 'cloud',
mode: 'production',
staticPath: declareRuntimeEnv('RESOLVE_CLOUD_STATIC_URL'),
subscribeAdapter: {
module: 'resolve-subscribe-mqtt',
options: {}
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
},
schedulers: {
scheduler: {
adapter: {
module: 'resolve-scheduler-cloud',
options: {}
},
connectorName: 'default'
}
},
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
export default {
target: 'cloud',
mode: 'production',
staticPath: declareRuntimeEnv('RESOLVE_CLOUD_STATIC_URL'),
subscribeAdapter: {
module: 'resolve-subscribe-mqtt',
options: {}
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
} /*,
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
}*/
}
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
},
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
}
}
module.exports = cloudConfig
const { declareRuntimeEnv } = require('resolve-scripts')
const cloudConfig = {
target: 'cloud',
mode: 'production',
staticPath: declareRuntimeEnv('RESOLVE_CLOUD_STATIC_URL'),
subscribeAdapter: {
module: 'resolve-subscribe-mqtt',
options: {}
},
storageAdapter: {
module: 'resolve-storage-postgresql-serverless',
options: {
awsSecretStoreArn: declareRuntimeEnv('RESOLVE_ES_SECRET_STORE_ARN'),
dbClusterOrInstanceArn: declareRuntimeEnv('RESOLVE_ES_CLUSTER_ARN'),
databaseName: declareRuntimeEnv('RESOLVE_ES_DATABASE'),
tableName: declareRuntimeEnv('RESOLVE_ES_TABLE'),
region: declareRuntimeEnv('AWS_REGION')
}
},
readModelConnectors: {
default: {
module: 'resolve-readmodel-mysql',
options: {
host: declareRuntimeEnv('RESOLVE_READMODEL_SQL_HOST'),
database: declareRuntimeEnv('RESOLVE_READMODEL_SQL_DATABASE'),
user: declareRuntimeEnv('RESOLVE_READMODEL_SQL_USER'),
password: declareRuntimeEnv('RESOLVE_READMODEL_SQL_PASSWORD')
}
}
}