first commit

This commit is contained in:
2026-08-08 20:03:22 -05:00
commit 3eb8a065ac
55 changed files with 2687 additions and 0 deletions
+18
View File
@@ -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,
}),
})
})