first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { utils } from '@start9labs/start-sdk'
|
||||
import { storeJson } from '../fileModels/store.json'
|
||||
import { sdk } from '../sdk'
|
||||
|
||||
export const seedSecrets = sdk.setupOnInit(async (effects, kind) => {
|
||||
if (kind !== 'install') return
|
||||
|
||||
await storeJson.merge(effects, {
|
||||
databasePassword: utils.getDefaultString({
|
||||
charset: 'a-z,A-Z,0-9',
|
||||
len: 48,
|
||||
}),
|
||||
secretKeyBase: utils.getDefaultString({
|
||||
charset: 'a-z,A-Z,0-9',
|
||||
len: 128,
|
||||
}),
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user